Re: Session read problem

From: Date: Sat, 16 Mar 2002 11:17:26 +0000
Subject: Re: Session read problem
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-12663@lists.php.net to get a copy of this message
Remember that a session is normally bound to the the browser window setting it, so if you close down that browser window and open a new one the session_start() will correctly start a session but with another unique session name so it will not access you old session variables since the session now has a new name. Think of it like this, a session is the time frame between you open the page in a browser and til that browser is closed. Within that time frame you can set and access session variables. So session life time = page open in browser -> browser closed. If you need data stored for access after restart use a database or files. ~ Sviss. "Martin" <webmaster@svensk-design.com> wrote in message news:20020316101730.56758.qmail@pb1.pair.com... > Hmm seems to have a problem here.. > The session is set and everything but when > I tries to access it nothing happend!!! > I got it to work fine but then i restarted my computer and > when I started up my apache webserver again the session > would not read. > No problems with setting a session but to read them. > Anyone here with a solution ? > best regards > > -- > Martin Eriksson > webdesigner & Utvecklare > ---------------------------------------------------------------- > webmaster@svensk-design.com > http://www.svensk-design.com > >

« previous php.windows (#12663) next »