Lamez Posted January 12, 2010 Share Posted January 12, 2010 I set a 1 in the database when the user logs in. However, when they don't click the logout button, they are stuck as online, and because of the way I have it setup, they can't login. How should I go about checking for expired users? Say, they can only be inactive for 5 minuets. Any ideas? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/188251-i-need-advice-not-code/ Share on other sites More sharing options...
ignace Posted January 12, 2010 Share Posted January 12, 2010 Store there last click when they login verify that the time between now and the last click is greater then a certain treshold. Quote Link to comment https://forums.phpfreaks.com/topic/188251-i-need-advice-not-code/#findComment-993815 Share on other sites More sharing options...
mikesta707 Posted January 12, 2010 Share Posted January 12, 2010 this tutorial explains it pretty well. It logs people out in 10 minutes (rather than 5) but the basic logic is there. Quote Link to comment https://forums.phpfreaks.com/topic/188251-i-need-advice-not-code/#findComment-993817 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.