Re: Session

From: Date: Tue, 19 Oct 2004 19:57:16 +0000
Subject: Re: Session
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-199820@lists.php.net to get a copy of this message
> I am trying to make my pages last for only 1 minute but I am not been successfull. > > I have already changed session.cache_expire = 1 in php.ini (USING RedHat) but nothing happens. > > I would like the pages to last only for 1 minute, this means that if the user do not use the > site within 1 minute all the session variables will be lost and he will have to log on again (I am > using session variables to store name and password). > > Can anyone help me? you will have to expire the session manually. keep track of the last time they access the site in a session variable. Check that variable every request they make. If it is longer than a minute, expire the session.

« previous php.general (#199820) next »