RE: [PHP] Session Timeout
| From: | Pablo Gosse | Date: | Wed, 29 Oct 2003 03:14:13 +0000 |
| Subject: | RE: [PHP] Session Timeout | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-167962@lists.php.net to get a copy of this message | ||
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