PDA

View Full Version : Session timeout


Silmaril8n
01-21-2005, 02:43 PM
I didn't search too hard on this but I think it's been brought up before.

When I check my phpinfo(); it shows that the session cookie is set to expire at 0 which of course means never. However, since I started using sessions on HR's servers they have always expired at some point before I closed my web browser. Is there another setting I can add via .htaccess that will eliminate or extend the session timeout?

I found a few different suggestions on Google but they conflicted as to what to change... rather than start trial-n-error I thought I'd see if anyone else had a solution.

Viper007Bond
01-22-2005, 11:01 AM
Something here will probably help: http://us4.php.net/manual/en/ref.session.php

Silmaril8n
01-25-2005, 06:00 PM
Well I went through there and found that I maybe needed to add this line:
php_value session.gc_maxlifetime 72000
to my htaccess. That would essentially keep the sessions from being deleted during the cleanup process. I had that set all day yesterday but the sessions still die somewhere between 20 and 30 minutes. I don't get it.