Page 1 of 1

session variables not staying

Posted: Sun Aug 20, 2006 9:58 pm
by GeXus
Any idea why session variables that are set on one page would not hold when being redirected to another page?

The odd thing, is it was actually working last night.. now all of the sudden its not. Basically all I have is session_start() at the top of both pages, and $_SESSION['username'] assigned to a value (a static value i tried while testing)... when I do a header redirect to the next page, this variable is empty.

Posted: Sun Aug 20, 2006 10:00 pm
by feyd
Surprise! We've talked about it.. quite recently too. :D

search.php?search_keywords=session_writ ... uthor=feyd

Posted: Sun Aug 20, 2006 11:00 pm
by GeXus
Nice! session_write_close did the job... thanks!!