svgmx5 Posted June 13, 2010 Share Posted June 13, 2010 I'm trying to figure out how to log out a user after the user leaves the page or is innactive after say 2 minutes or so I was thinking grabbing the current time they log in by storing it in a $_SESSION variable and then after 2 minutes destroying that session, however i'm not sure where to start at Hope someone can help me out Quote Link to comment https://forums.phpfreaks.com/topic/204623-log-out-a-user-after-2-minutes-of-inactivity/ Share on other sites More sharing options...
svgmx5 Posted June 13, 2010 Author Share Posted June 13, 2010 well i figured it out so nvm, thanks to anyone who took the time to look at it Quote Link to comment https://forums.phpfreaks.com/topic/204623-log-out-a-user-after-2-minutes-of-inactivity/#findComment-1071352 Share on other sites More sharing options...
premiso Posted June 13, 2010 Share Posted June 13, 2010 If you figured it out, you should post the solution to help others who find this problem via search. Quote Link to comment https://forums.phpfreaks.com/topic/204623-log-out-a-user-after-2-minutes-of-inactivity/#findComment-1071353 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.