In one web application I use java,jsp,servlets,struts.
Just wanted to destroy the session when the browser is closed by the end user.
Where I can put some code to destroy the session and update the status of that user in the database.
Briefly in that application I have restricted multiple login of the same user.
So if the user closes the browser without clicking the log out then the status of the user in the database Should update for the next time login.