Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Jimmy Reds
March 14, 2006, 11:44 am
rate this thread
I am setting session variables on a page then doing a header/location
redirect to a second page however I am losing one of my session
variables. Not all of them, just one.
Here are some details/comments:
I am doing a session_start() on ALL of my pages, right at the top of
I have tried session_write_close() before doing the redirect
A print_r of $_SESSION on the first page shows all of the variables
intact before the redirect is attempted
There is nothing in the code or in an included file that
unsets/destroys/overwrites the session variable.
The code that sets the variable is not within an output buffer
PHP version 4.3.1, Apache version 188.8.131.52 running on Windows 2000
Surely this shouldn't happen? If I was losing the entire session that
would kind of be understandable but losing ONE variable out of about 10
or 11 is very strange.
Has anyone experienced this before or can anyone offer an explanation?
Let me know if you need any further details.
Thanks for any advice offered.