Page 1 of 1

PHP session variables do not persist across page

Posted: Fri Jun 12, 2009 11:59 pm
by cksiew
Hi,
I am having session problems in php6. My session values do not persist across pages, but do, however, accessible when they are retrieved in the same page where they are declared.
all pages have been declared with session_start() at the first line. I have also checked the folder where session data are stored and turned out that they exist.

Any help is deeply appreciated.

:D

Re: PHP session variables do not persist across page

Posted: Mon Jun 15, 2009 1:36 am
by omniuni
Hi cksiew,

Double check your code to make sure you don't have any conditional that is accidentally using "=" instead of "==" and resetting your $_SESSION variable.

If that doesn't turn out to be your problem, let us know.

Good Luck

-OmniUni