This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I do not know if this question belongs here ... but
I believe that this is impossible . The very reason being HTTP is stateless . When the window object is closed there are no events to capture this . That is the idea of having an explicit logout item that you can capture . Another way would be to write a HTTP Sessionbinding listener . Here the value unbound event will be raised when the session expires (window with no activity for a set amount of time ) then you may be able to do a session invalidate.
You may be able to search about widow close in either the servlet or jsp forum to get many leads
Hope this helps Lakshmi Anantharaman [ May 24, 2005: Message edited by: Laksh Anan ]
Hello Ravi, I am also looking for the same query. If you get answer please do help me too.
I have no idea about AJAX, if you find something reply back.