Jump to content

log out a user after 2 minutes of inactivity


svgmx5

Recommended Posts

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

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.