Re: Sessions that last for ever

From: Date: Sat, 16 Feb 2002 14:37:45 +0000
Subject: Re: Sessions that last for ever
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85038@lists.php.net to get a copy of this message
Hi Nigel, you could set a cookie once they enter your site, and check at the top of each page you want accessible with this variable to see if they have it or not. Joe :) Nigel Gilbert <n.gilbert@soc.surrey.ac.uk> wrote in message news:D65C461F-22DA-11D6-883C-003065548A6E@soc.surrey.ac.uk... > By default, a session (created with session_register) seems to last just > as long as the user has their browser open. If a user quits the > browser, the session is automatically destroyed. > > I want a session to last indefinitely (or until my program destroys > it). There are some hints about how this could be done with cookies in > the documentation, but not a clear recipe. What sequence of PHP > statements should I use to achieve this? > > Thanks for any help, > > Nigel >

« previous php.general (#85038) next »