ohdang888 Posted December 19, 2008 Share Posted December 19, 2008 Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/socialap/public_html/posters/index.php:1) in /home/socialap/public_html/posters/index.php on line 2 These are the first two lines... And session_start() is not called anywhere else. <?php session_start(); ?> Hm.... whats wrong here? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/137628-solved-session-error/ Share on other sites More sharing options...
mmarif4u Posted December 19, 2008 Share Posted December 19, 2008 You can avoid this by adding ob_start(); at very top of the page. Quote Link to comment https://forums.phpfreaks.com/topic/137628-solved-session-error/#findComment-719353 Share on other sites More sharing options...
.josh Posted December 19, 2008 Share Posted December 19, 2008 You cannot have any output before it, not even blank lines or spaces. I notice in that code you posted, there's a space before the <?php could be that, or if that was just a typo on the forum, something else. Do not use ob_start();. First off, same rule applies: has to be before output. 2nd, it's a bandaid, not a fix. The fix would be to code properly to begin with. Quote Link to comment https://forums.phpfreaks.com/topic/137628-solved-session-error/#findComment-719371 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.