Hi Christian, this is exactly what session timeouts are made for. HTTP is request-response based, ie. a statusless protocol, so if the user doesn't log out as designed (giving your app a chance to call session.invalidate() somewhere), there is no means to tell if he is still connected or not. As the session state is kept on the server, an indication that the session may have come to an end is the interval of activity between two requests (or: the lack of another request, in this case). You can specify the interval in question in web.xml or by calling setMaxInactiveInterval() somewhere in you code.
HTH, -- Chris (SCPJ2) > -----Original Message----- > From: A mailing list about Java Server Pages specification > and reference [mailto:[EMAIL PROTECTED]] On Behalf Of > Christian Hamann L > Sent: Friday, December 13, 2002 4:26 PM > To: [EMAIL PROTECTED] > Subject: Re: Controlling session when user is out > > > Hi All > I have applications in my Application Server, which everybody > are connecting > to database, for some applications i use beans to manage > information, but > whne the user close the browser i dont know how can control > his session, i > can put a button for inavlidate sessions, but the user dont > use that option, > what can i do to controll it. Because it does lowest to my > Server, because > the session wasn't invalidated. > > atte > > Christian Hamann L. > > ============================================================== > ============= > 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 =========================================================================== 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