Need to find-out improper sign-out



Is there any way to run a function or a code-block whenever the client-
server communication breaks off. (ie power-off, browser-crash...)

Why I need this is, I want to update a login-table to trace user's
leave the portal without proper log-off or sign-out.

Every time a user at proper sign-in, a flag is set & account is locked
until he sign-out by updating in the login-table.At sign-out the flag
is released & his account is ready to log-in again.
Is my logic right?

Kesavan.M
m.kesavan@xxxxxxxxxxx

.



Relevant Pages

  • Re: Need to find-out improper sign-out
    ... leave the portal without proper log-off or sign-out. ... Every time a user at proper sign-in, a flag is set & account is locked ... Best is to use sessions and have a timeout on the session. ...
    (comp.lang.php)
  • Re: Need to find-out improper sign-out
    ... until he sign-out by updating in the login-table.At sign-out the flag ... is released & his account is ready to log-in again. ... the *old* session, ... As long as he's using the same browser, he will have the same session id, and it will still be considered one user serverside, even if the requests hit the server at exactly the same moment. ...
    (comp.lang.php)