session timeout

From: Date: Thu, 13 Nov 2003 15:04:20 +0000
Subject: session timeout
Groups: php.general 
Request: Send a blank email to php-general+get-169500@lists.php.net to get a copy of this message
> How do I set the session timeout - eg someone leaves a broweser for say > half an hour then have to log in again.. > > As I'm on an intranet I want to increase ro 3 hours > > Pete > Pete, Change the default configuration of the option session.cookie_lifetime in the php.ini by default: ; Lifetime in seconds of cookie or, if 0, until browser is restarted. session.cookie_lifetime = 0 your change: ; Lifetime in seconds of cookie or, if 0, until browser is restarted. session.cookie_lifetime = 10800 // 10800 seconds = 3 hours I hope this help you, bye :).

« previous php.general (#169500) next »