Re: Session time-out value

From: Date: Fri, 23 Jan 2004 16:04:45 +0000
Subject: Re: Session time-out value
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-175522@lists.php.net to get a copy of this message
From: "Pushpinder Singh" <pgarcha@adelphia.net> > I am using php and Mysql in my application. The problem is that the > system automatically logs the user out of the system after 24 minutes. > I would like to extend the session lifetime to about 2-3 hrs. I know > there is a way to do it using a .htaccess file kept in the same folder > as the application. Does anyone know how this is done ?? Adjust the "session.gc_maxlifetime" setting. It's 1440 seconds by default.This controls the amount of time that unaccessed session files are seen as "garbage" and deleted. If you raise the limit, the files (and hence the sessions) will last longer. ---John Holmes...

« previous php.general (#175522) next »