tobimichigan Posted February 12, 2010 Share Posted February 12, 2010 Hi Coders, I restrict access to php pages with the following: session_start(); //if there is no session set then redirect to login page if(!isset($_SESSION['MM_level'])){ header("Location: login.php"); } Please I am trying to code in php a way of auto-logging off users after an idle time of say 5mins. How do I do this? Any applicable help would be highly appreciated. Link to comment https://forums.phpfreaks.com/topic/191870-auto-logging-off/ Share on other sites More sharing options...
bugcoder Posted February 12, 2010 Share Posted February 12, 2010 http://www.phpbuilder.com/tips/item.php?id=93 Link to comment https://forums.phpfreaks.com/topic/191870-auto-logging-off/#findComment-1011335 Share on other sites More sharing options...
tobimichigan Posted February 12, 2010 Author Share Posted February 12, 2010 U're not saying anything... or what? Link to comment https://forums.phpfreaks.com/topic/191870-auto-logging-off/#findComment-1011336 Share on other sites More sharing options...
bugcoder Posted February 12, 2010 Share Posted February 12, 2010 http://www.phpbuilder.com/tips/item.php?id=93 well its an example that might work for you. Link to comment https://forums.phpfreaks.com/topic/191870-auto-logging-off/#findComment-1011337 Share on other sites More sharing options...
tobimichigan Posted February 12, 2010 Author Share Posted February 12, 2010 Alright then thanks, I'd certainly work on that... Link to comment https://forums.phpfreaks.com/topic/191870-auto-logging-off/#findComment-1011348 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.