Page 1 of 1

Warning: session_start() [function.session-start]: Cann.....

Posted: Fri Oct 30, 2009 1:48 am
by prue_
hi, can someone help me with this? I keep getting this error....

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by ......

I tried to upload my files to other servers but the error doesn't show.. why am I getting this error when I upload it to this specific server?

thanks a lot.

Re: Warning: session_start() [function.session-start]: Cann.....

Posted: Fri Oct 30, 2009 2:30 am
by Naeem
can you please post your code OR try this one
Put your code between this function where you are using session and header

Code: Select all

ob_start();
Your code
ob_end_flush();

Re: Warning: session_start() [function.session-start]: Cann.....

Posted: Fri Oct 30, 2009 4:08 am
by prue_
thanks, it solved the problem.. :)