How would I validate a session if user leaves the site or closes the borwser window. To my knowledge there is no way of knowing when a user leaves the site or closes the browser window but there has to be something that I can do to destroy sesions beside reducing timeout time in web.xml. Objects that I am working with are huge and we get
java heap(out of memory exception). If session is destroyed the objects that it is referencing to will become eligible for garbage collection.
Thanks
Imad