Otherwise I guess you could have a session bean with a finalize()
method,
which will be called when the session has timed out.
Since the HTTP protocol is a request/response protocol there is no
connection between the client and the server that is closed when the
user closes the browser (or moves on to another page). You have to have
the user logout explicitly or wait for time out.
> Put an object into the session that implements
> javax.servlet.http.HttpSessionBindingListener. It will be notified
when
> it's being removed from the session (which will happen when the
session is
> invalidated).
> (*Chris*)
>
> > Is there someway to detect when a session ended.
> >
> > For example a user logs into the login section, the db logs when
they came
> > in and sets value a to a session obj, when the session is terminated
> (closed
> > the browser) is there someway to detect that, I know you can use a
cookie,
> > but some browsers have cookies disabled.
===========================================================================
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://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets