However capturing browser closure event is not a good idea to invalidate a user session.
What can be an alternative solution to invalidate a user session on browser closure ?
Session (in)validation is usually a server concept: a session is "valid" as long as the server considers it to be valid, i.e.
boyfriend dating married - Invalidating session on browser close
quote: Originally posted by Vinod Tewthia hi--- in my web-application i am keeping track of logged users and their current session (without cookies) in some datastructure and remove the corospondig record form this datastructure when user logged off properly, but!
And you can implement onunload() in the jsp page and call a java script method and use iframes to send a request to a servlet which will invalidate the session.
Have a look at the following discussions on this topic. EID=34927 ID=537660 Hope it gives you usefull information.
I have a web application where web session need to expire after stipulated period of time.
You are currently viewing the Pro JSP section of the Wrox Programmer to Programmer discussions.