Hi
I record the time of login and logout of users on my site
The problem is when users close the window before logging out, the log out time is not recorded?
Has anyone a solution for this?
For example is it possible to redirect to the logout page if the close button is clicked?
Thank you in advance for your help
Redirecting on closing window
Moderator: General Moderators
Re: Redirecting on closing window
Ajax to post to the server their online status every 30 seconds, consider them offline if they haven't pinged in 60 seconds.