Jump to content

Recommended Posts

possibly with some javascript event checking like an onclose, doing some ajax to update it. but i'm not sure if it is possible for you to get onclose to execute a function if the user straight up clicks the close window X button. it is for sure not possible with only php.
Link to comment
https://forums.phpfreaks.com/topic/11976-log-off/#findComment-45498
Share on other sites

it's simple, you have an expiry for the session which is set to about lets say 30 minutes after each action of that same user within the site, then in the session verification which each user has on every page load add an sql line which checks `expire` vs. the time() and those which are less than time() are deleted (logged off)
Link to comment
https://forums.phpfreaks.com/topic/11976-log-off/#findComment-45510
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.