Re: PHP not remembering sessions

From: Date: Thu, 23 Oct 2003 20:33:45 +0000
Subject: Re: PHP not remembering sessions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-167347@lists.php.net to get a copy of this message
* Thus wrote Golawala, Moiz M (IndSys, GE Interlogix) (Moiz.Golawala@ge.com): > > I noticed that 2 cookies were created one for each session start. When I opened one of the > cookies, I noticed that the data "Please help" was in the session cookie. Somehow php > thinks a session is not already created and starts a new session on page2.php. I think you mean the session file had the "please help" not the cookie. The cookie will only have the session id in it. > > my php.ini file has: > register_globals = off > session.use_cookies = 1 > session.use_only_cookies = 1 > session.auto_start = 0 > session.gc_maxlifetime = 1440 > > Please can someone help me. I am not sure what I am doing wrong? Maybe it is some configuration > that is causing this issue. Any help appreciated. > Ensure your browser is accepting cookies. If you dont accept a cookie on the first request then the second request will start a whole new session without the previous data. Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/

« previous php.general (#167347) next »