Page 1 of 1

Warning: session_start() error

Posted: Thu Dec 04, 2008 6:13 pm
by pauls74462
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/roijrofeiefot4085t/public_html/fgop/fwi/0orfp.php:10) in /home/roijrofeiefot4085t/public_html/fgop/fwi/0orfp.php on line 13
While trying to get sessions to work I got the above error. How do I remove it, I tryed:

Code: Select all

 
unset($_SESSION['views']);
unset($_SESSION['count']);
 
Didn't wrk

Paul

Re: Warning: session_start() error

Posted: Thu Dec 04, 2008 6:36 pm
by requinix
You can't call session_start after something's been outputted.

Re: Warning: session_start() error

Posted: Thu Dec 04, 2008 7:41 pm
by requinix
If you want more help, ask here in the forums, not over PM.
pauls74462 wrote:Subject: Warning: session_start() error
tasairis wrote:You can't call session_start after something's been outputted.

I put the code you suggested and got this error 2 times.
Fatal error: Maximum execution time of 30 seconds exceeded in /home/pauls744/public_html/schools/Test/TestRiteA.php on line 8
Post some code. My guess is an infinite loop, but it could be one of many other things.