Re: Is this the right way to increase the amount of time session variables are dropped
| From: | BOOT | Date: | Fri, 20 Aug 2004 20:14:51 +0000 |
| Subject: | Re: Is this the right way to increase the amount of time session variables are dropped | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-194372@lists.php.net to get a copy of this message | ||
Thanks Torsten. I wasn't 100% sure that was the right env var to change....
but now I am :)
"Torsten Roehr" <roehr@zilleon.com> wrote in message
news:20040820191051.38169.qmail@pb1.pair.com...
> "Boot" <pfine@of-law.com> wrote in message
> news:20040820184140.40878.qmail@pb1.pair.com...
> > Currently session variables are dropped in a shorter time period than I
> > would like when a user sits with a page open but idle.
> >
> > My PHP.INI has session_gc_maxlifetime set to 1440.
> >
> > If I want variables kept for two hours, is setting
session_gc_maxlifetime
> > the correct setting to change (to 7200) ?
> >
> >
> > Thanks!
>
> If you cannot edit your php.ini put this line at the top of all your
> scripts:
> ini_set('session.gc_maxlifetime', 7200);
>
> You can also set this environment variable with a .htaccess file. Search
the
> archives to find out how the exact syntax is.
>
> Regards, Torsten Roehr