Home > Archive > PHP Language > June 2007 > PHP sessions time out too quickly
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
PHP sessions time out too quickly
|
|
| Jason Maur 2007-06-20, 9:58 pm |
| Hey all,
I'm having a problem with PHP sessions. Users
(including myself) are having their sessions expire
after only a couple minutes, despite session.gc_maxlifetime
being set to 1440 (24mins?). Any general ideas on what
would cause a session to terminate? I'm using a lot of
javascript (mootools) to do some AJAX stuff. Maybe that
has something to do with it? Any help / suggestions would
be appreciated...
| |
|
| On Wed, 20 Jun 2007 12:49:36 -0400, Jason Maur <jmaumau@yahoo.com> wrote:
>Hey all,
>
>I'm having a problem with PHP sessions. Users
>(including myself) are having their sessions expire
>after only a couple minutes, despite session.gc_maxlifetime
>being set to 1440 (24mins?). Any general ideas on what
>would cause a session to terminate? I'm using a lot of
>javascript (mootools) to do some AJAX stuff. Maybe that
>has something to do with it? Any help / suggestions would
>be appreciated...
i set mine this way 300 minutes
ini_set("session.gc_maxlifetime", "18000");
if you still have timeout issues
might be better to change to cookie based system
i've had time out issues - and resorted to setting cookie for user logins
and still used sessions for saved searches and paging, things like that
|
|
|
|
|