Session expires early

Permalink
Maximum session lifetime is configured as 7200 seconds (2 hours) in base.php. When I check the cookie in Firefox, it shows that the cookie expires at the end of the session (i.e., it's a session cookie).

A session expires after a much shorter time, though, about 20 minutes. Is there anything else that affects the timeout of a session?

mose
 
tallacman replied on at Permalink Reply
tallacman
And I'd like to know if putting:

define('SESSION_MAX_LIFETIME', 900); // 15 minutes

in the site.php will change the timeout.
tallacman replied on at Permalink Reply
tallacman
It doesn't. Does anyone know how to make the site signout after "x" minutes of inactivity?
zoinks replied on at Permalink Reply
I keep getting timed out after a few minutes. It's really annoying because I'm in the middle of something and then I go to save it and get an error. Then, I have to log back in and do it all over again.

I'm SURE there's some explanation for it, but I don't know what it is.
Remo replied on at Permalink Reply
Remo
Old thread, just found it by accident. Did anyone check if this helps?

ini_set("session.gc_maxlifetime", 2*60*60);