Jump to content

Auto-logging off


tobimichigan

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.