Re: Session problems (Apache+PHP4+Win2000)

From: Date: Wed, 18 Oct 2000 11:42:08 +0000
Subject: Re: Session problems (Apache+PHP4+Win2000)
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-3336@lists.php.net to get a copy of this message
> IT'S WORKING, MAGIC ???. > No 'register_globals' in php.ini was set to OFF :-(((( you should use the $HTTP_SESSION_VARS array instead. > Thanks, > > Jacek Bontko > email: jbontko@jurasoft.com.pl > > > > -----Original Message----- > From: Andy Hoffman [mailto:andy.hoffman@bms.com] > Sent: Tuesday, October 17, 2000 5:14 PM > To: php-windows@lists.php.net > Subject: Re: [PHP-WIN] Session problems (Apache+PHP4+Win2000) > > > 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... greetings daniel /*-- daniel beulshausen - daniel@php4win.de using php on windows? http://www.php4win.de

« previous php.windows (#3336) next »