Posted by peter on 10/13/06 10:54
>
> I have a site accessible via a login system. I would like to track login
> and
> logout time for every user. I can get the login time no problem - as every
> time someone logs in, a row is added to a mysql table. The problem happens
> with logout as almost no one uses the logout button; rather they just
> close
> the browser window.
> My question is therefore - am i able to capture the time the browser is
> closed? all login data is stored in a session; so is there a way to find
> out
> the time the session got deleted which would mean user has left ?
>
You could always create your own session handler and in your own function
log the time the session was cleaned
http://uk2.php.net/manual/en/function.session-set-save-handler.php
[Back to original message]
|