HttpSessionBindingListener

-----Original Message-----
From: [Neil Haddley] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 21, 1999 9:00 AM
To: [EMAIL PROTECTED]
Subject: Session.invalidate() does not unbind?


All,

I am concerned that I may have hit a brick wall :(

I understand that each HttpSession instance should become invalid after a
period
 of time and that
as part of the invalidation process any objects bound to that session
instance
should be automatically
unbound.

"(For example, the Java Web Server automatically invalidates a session when
there have been no page requests in some period of time, 30 minutes by
default.)
 "
see:
http://gematria.jct.ac.il/~elazar/tutorial/servlets/client-state/session-tra
cking.html

I was hoping to catch the HttpSessionBindingEvent and do something...

In the test environment I have attempted to invalidate the session as part
of a
doPost fn but I have found that while:

            //force creation of new session
            session.putValue("myStateKey", new SessionSaverAgent());
            out.println("<h2>old session has been replaced!</h2>");

cause the event to be raised and caught by valueUnbound(...)

            //invalidate session
            session.invalidate();
            out.println("<h2>old session has been invalidated!</h2>");

does not

I would be grateful to know if anyone has seen the
session.invalidate()->valueUnbound(...) mechanism working.

All the software I am using is all bundled as part of Visual Cafe 3.0c

Many Thanks

Neil

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to