Re: session timeout
| From: | Marek Kilimajer | Date: | Fri, 16 Apr 2004 12:54:00 +0000 |
| Subject: | Re: session timeout | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183617@lists.php.net to get a copy of this message | ||
pete M wrote:
Am trying to increae the session lifetime to 8 hours ish using this code ini_set('session.gc_maxlifetime',28800); does not work ? any ideas PeteThere are 3 conditions that must be met: 1. You must set it before session_start() 2. No other application can access your session storage. Other applications could have shorter session lifetime, and the shortest would apply for all other applications. 3. The session cookie must live long enough. The default lifetime for session cookie is 0, that means untill the browser closes. HTH