RE: [PHP] Session Timeout
| From: | daniel at electroteque dot org | Date: | Wed, 29 Oct 2003 03:37:32 +0000 |
| Subject: | RE: [PHP] Session Timeout | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-167964@lists.php.net to get a copy of this message | ||
right of course, 1440 is only 24 minutes.
> On Tuesday, October 28, 2003 6:46 PM wrote:
>
>> Hi there, i am experiencing a session timeout problem with one of my
>> projects. One of the users had left their machine for less than 15
> mins,
>> maybe a bit more and it logged them out when posting data. This isnt
> good
>> as they lost their data. I was wondering how i can dynamically set the
>> session timeout to try and prevent this.
>
> Use ini_set() to alter the max lifetime of a session.
>
> ini_set('session.gc_maxlifetime',n);
>
> where n is the number of seconds you want to pass before the session is
> expired. Default is 1440.
>
> Cheers,
> Pablo