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.
redirecting to login page after 12 minutes inactivity
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
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.