Session Issue - Cannot Send?
Warning: session_register() [function.session-register]: Cannot send session cookie - headers already sent by (output started at *URL*/choose.php:5) in *URL*/choose.php on line 7
Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at *URL*/choose.php:5) in *URL*/choose.php on line 7
Does anybody know what this means? How do I fix my sessions?
Please note I've used *URL* in place of the actual URL for privacy.
The "headers sent" error occurs when your code has already finished sending http headers and has begun sending http data and you try to send headers again. That means you're probably echoing some text or something before the session_register() call.
Well that was interesting. I wrote the code
, and I got an error. Thinking it may be the variable, I tried
, but it still did not work. I commented out the code and it worked. I tried writing
, and it WORKED!
It must have been the term. Sessions must not like it.
On second thought... maybe it was just because I put it above the header.
This is strange...
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread