Thanks Torsten. I wasn't 100% sure that was the right env var to change....
but now I am :)






"Torsten Roehr" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Boot" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to