I would consider setting the session-timeout parameter in your deployment descriptor. Alternatively you can do that programmatically by using setMaxInactiveInterval method of the session object. After the time specified elapsed, your web container will terminate the session. (It will call session.invalidate())
This way, you don't need to worry about the browser specific events. ibo --- Jo�o_Serras <[EMAIL PROTECTED]> wrote: > Hi all! > Can anyone tell me how can I attach an event > to a browser window? > I have a JSP/Servlet application running on > server (PC) that opens a > UNIX session. When I logout from the application, > the application forwards > the request to "logout.jsp" that makes one call to > "session.invalidate()". > This closes all established connections, and the > UNIX sessions are closed. > The problem happens when I close the browser before > I make logout, the UNIX > sessions aren't closed. > > Jo�o Serras > > ==========================================================================To > unsubscribe: mailto [EMAIL PROTECTED] with body: > "signoff JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: > "set JSP-INTEREST DIGEST". > Some relevant FAQs on JSP/Servlets can be found at: > > http://archives.java.sun.com/jsp-interest.html > http://java.sun.com/products/jsp/faq.html > http://www.esperanto.org.nz/jsp/jspfaq.jsp > http://www.jguru.com/faq/index.jsp > http://www.jspinsider.com __________________________________________________ Do You Yahoo!? Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/ =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com
