PC Nerd Posted April 14, 2007 Share Posted April 14, 2007 hi guys i have a login system, that logs the time of someones login, and gives it an id every page that is loaded, is loded with when, who etc. and a unique id. what i want to do is similar to what happens here. if a user is inactive ( not requests for 10 minutes) the log him out or something. i understand this would be a cron, but maybe it could be int eh page request, and simply checks and redirects if necicary. bow would i do this? thankyou Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted April 14, 2007 Author Share Posted April 14, 2007 *** bump *** Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted April 15, 2007 Author Share Posted April 15, 2007 bump Quote Link to comment Share on other sites More sharing options...
Barand Posted April 15, 2007 Share Posted April 15, 2007 Run a query finding those who are logged on and whose latest activity record is older than 10 minutes. Quote Link to comment Share on other sites More sharing options...
PC Nerd Posted April 15, 2007 Author Share Posted April 15, 2007 thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.