Page 1 of 1

redirecting to login page after 12 minutes inactivity

Posted: Fri Sep 08, 2006 11:17 pm
by amitsri
hi

i am trying to implement a code which will logout a logged in person after 12 min of inactivity. is there a way out to solve this problem. thanks in advance.

Posted: Fri Sep 08, 2006 11:22 pm
by Christopher
You could use a Meta Refresh tag in the head or use the Javascript setTimeout() function.

Posted: Fri Sep 08, 2006 11:36 pm
by feyd
The more effective way is using the session system. Specifically, implementing database sessions. We've talked about this sort of behaviour a lot. Several times quite recently. So if you want more detail, seek them out. The summary is: your record the last request time and delete those in the table that are stale.