Reply to Re: when browser is closed

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация