Re: session timeout
| From: | Pushpinder Singh | Date: | Fri, 16 Apr 2004 14:35:30 +0000 |
| Subject: | Re: session timeout | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-183632@lists.php.net to get a copy of this message | ||
Hello Marek,
I had similar trouble with my PHP application. I used an .htaccess file with the same line. But it still did not work. I guess I even tried
ini_set() function.
I have a question with this point :
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.Does it mean that the shortest session lifetime associated with an application applies to all other applications in the domain ? Has anyone been able to get the session_life to last atleast a couple of hours // my appl logs the user out after about 30 mins Thanks in advance Pushpinder Singh On Friday, April 16, 2004, at 08:54 AM, Marek Kilimajer wrote:
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php