Page 1 of 1

Redirecting on closing window

Posted: Tue Feb 01, 2011 4:25 am
by m2babaey
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

Re: Redirecting on closing window

Posted: Tue Feb 01, 2011 5:02 am
by josh
Ajax to post to the server their online status every 30 seconds, consider them offline if they haven't pinged in 60 seconds.