restricting multiple logon to an application with single user account
-
pls help restricting multiple logon to an application with single user account. Here wht m doing is , m checking login details against a database. if is a valid user then allowing to browse throuth the application. my requirement is if one user is loged in and if someother user tries to login with same user account i need to restrict the second user saying "this login is already in use". I can maintain a temp table for this , whenever a login is success i can update "isloged" field as true and we can set it false when user logs out. but how can we handle situations like if a user logs in and closes bowser close button instead of log out. if a user logs in and leaves doing nothing. pls help in resolving this, if possible write a sample code for me. thanks in advance.