Cod-nes Posted January 20, 2009 Share Posted January 20, 2009 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/cloudex/public_html/aquaLinks/top.php:6) in /home/cloudex/public_html/aquaLinks/adminControl.php on line 13Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/cloudex/public_html/aquaLinkHow can I fix these errors in PHP 5? In PHP 4 they didn't appear. Link to comment Share on other sites More sharing options...
Synook Posted January 20, 2009 Share Posted January 20, 2009 You have to have no output before the session_start() call. Link to comment Share on other sites More sharing options...
jlhaslip Posted January 20, 2009 Share Posted January 20, 2009 Not even a blank line in the html file above the header being output. Link to comment Share on other sites More sharing options...
justsomeguy Posted January 20, 2009 Share Posted January 20, 2009 More info about the error message here:http://w3schools.invisionzone.com/index.ph...ost&p=96607The error message is telling you exactly where the offending output is. Link to comment Share on other sites More sharing options...
deepshah Posted January 24, 2009 Share Posted January 24, 2009 Start your code with the first line after opening tag of php "session_start()".Like following code :<?phpsession_start();....................................................................................?>Don't leave space between opening php tag and session_start().If you redirect your flow of execution from the current page, then you have to take care about header().I think it may be problem with you. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.