Page 1 of 1

session expiratoin

Posted: Fri Oct 20, 2006 10:01 pm
by murlopaz
Hi everybody. I have a login page based on cookie sessions.
Right now the cookie is set to expire in 5 minutes...
I want it to expire after 5 minutes of user inactivity.
How can I achieve that?

Posted: Fri Oct 20, 2006 10:17 pm
by feyd
Store the "current" time in the session data. Compare it with the request time. If greater than the allotment, killed it.