Jump to content

active sessions


komquat

Recommended Posts

The easiest way to do this is to store a flag and a timestamp when as user logs in. On each request the timestamp needs to be updated.

 

Then, all you do is simply run a cronjob every 10 minutes or so that looks for timestamps older than say 8 minutes or so (must be slightly longer than your default session timeout setting) and deletes these entries.

Link to comment
https://forums.phpfreaks.com/topic/64180-active-sessions/#findComment-319936
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.