Hi Tyler.

If you don't want to expose the ... let say "session supervisor" object
then you can use a "proxy" object wich is a session binding listener that
is used only to announce its supervisor that (or when) he was
bound/undbound to each session.
--------------
Anyway, this is by no means a session management facility, is just a way
to keep track of when/what sessions are created.

And session management is the servlet engine's task, if you try to
use unorthodox means (like trying to modify session-cookie headers)
you'll get unpredictable results.

--------------

Check JSDK API docs, not sure if there are warranties an invalidating
session automatically unbounds all its value listeners.
Some servlet engines might just throw them in garbage collector..

Cezar.

On Fri, 4 Jun 1999, TKV Tyler VanGorder wrote:

> Is there a way of adding an HttpSessionBindingListener explicitly on a
> session?
> The only way that it looks like I can add a listener is via adding it to
> the values
> of the session with "putValue" function. What if I want to have an
> object that
> manages all of the sessions? I do not want to expose this object to all
> sessions
> by adding it to their values but I still want that object to be notified
> when a sesion
> is invalidated. This would be a simple matter of adding
> "addHttpSessionBindingListener"
> and "removeHttpSessionBindingListener" to the session.
>
> Thanks
>
> Tyler Van Gorder
> [EMAIL PROTECTED]
> Landacorp.
>
> ___________________________________________________________________________
> 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