Posted by PleegWat on 10/12/06 08:44
In article <egjuer$s8$1@news.freedom2surf.net>, toffee says...
> 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 ?
I'd suggest saving the last page call in your table. Each time a page is
called during one session, update the last page call column to the
current time.
--
PleegWat
Remove caps to reply
[Back to original message]
|