Logout not happening when browser window is closed.
843841Nov 19 2006 — edited Nov 22 2006Hi.. this is a catch 22 situation. During login my authentication servlet checks the user name and password.. besides creating a session and cookes etc.. updates a "current_online_users" table in the DB so as to prevent concurrency. As the user logs out.. the system deletes that particular user from the "current_online_users" table . But the problem is.. if the user just closes the browser instead of "logging out".. the record doesnt get deleted from the "current_online_users" table .. and hence when the user tries to log in the next time.. he cant.. because..to the system he is theoretically still in the "current_online_users" table that is logged on..
How do i handle this situation.. that is.. concurrecy can be avoided but when the brower is closed the user is no longer in the "current_online_users" table ??
urgent help needed..
Thanks in advance