When a user close his browser the session still lives on the application server. It'll be deleted by the garbage collector after a fixed delay (you can configure it - session life time - in any AS).
Your problem is a common problem: you can resolve it simply using the finalize method (http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Object.html#finalize()) of a session bean. The finalize method is invoked by the garbage collector when the AS destroy your session. You can use it to do clean up operations.
It's simple and almost clean.
Hope this could help you.
bye
-- Pierpaolo
in data 18/05/2005 10.20 Hendrik Neumann ha scritto:
Hi everybody,
I have big problems when the users of my web-app are closing their browsers without using the "logout"-Button in my web app. This button is associated with an action-method which calls some important "clean-up"-methods. If the users are simply closing / exiting their browsers this action-method is not called, which causes some problems for the hole web-app.
So is it possible to associate this "logout"-method with the "exiting of the web-browser"? Is there another specific method called if the user closes his browser?
Greetings, Hendrik ______________________________________________________________ Verschicken Sie romantische, coole und witzige Bilder per SMS! Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193
-- Pierpaolo Follia Wave S.r.l. - Vai Benaco 24/B, Bedizzole (BS) Telefono: +39 030 687561 Fax: +39 030 6875690

