Re: Session problems (Apache+PHP4+Win2000)

From: Date: Tue, 17 Oct 2000 15:13:30 +0000
Subject: Re: Session problems (Apache+PHP4+Win2000)
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-3294@lists.php.net to get a copy of this message
Jacek Bontko wrote: > Hi All, > > The problem is: > > 1) At the first page I'm setting value and register the session variable > (session_register("My_Var")) > 2) Passing the session id (SID) to the second page > 3) When I'm trying to read $My_Var on the second page - is empty (should > keep the value from the first page). > > Sessions are hendled by files, the session file is created on desired path, > but empty. I haven't used sessions myself, so I'm surmising from what I've reviewed in the php manual (http://www.php.net/manual/ref.session.php). Are you calling "sesssion_start()" on both pages? What happens if you try to retrieve the session id on the second page via "session_id()"? We need to determine if this is a problem with the session setup on your server & within PHP or simply a code issue... -- Andy Hoffman Web Developer Bristol-Myers Squibb email: andy.hoffman@bms.com

« previous php.windows (#3294) next »