Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Logout not happening when browser window is closed.

843841Nov 19 2006 — edited Nov 22 2006
Hi.. 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 20 2006
Added on Nov 19 2006
5 comments
607 views