Page 1 of 1

Cannot send session cookie / cache limiter error in hosting

Posted: Fri Nov 18, 2011 12:17 am
by sajhak
Hi all,

Im quite new to PHP development. Recently I hosted a simple php application in a hosting server, and getting the following two errors in the top of the page when i try to access the application. But the strange thing is that, Im not getting this error messages when it is deployed in my local environment.

Listed below are the two exceptions im getting :

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/server/group/test/index.php:2) in /home/server/group/test/loginchecker.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/server/group/test/index.php::2) in /home/server/group/test/loginchecker.php on line 2

Thanks in advance
sajhak

Re: Cannot send session cookie / cache limiter error in host

Posted: Fri Nov 18, 2011 6:24 am
by Celauran
Headers already sent is a pretty common problem. A common culprit is extraneous blank lines in included files.