I was going to suggest HttpSessionBindingListener as well.  In fact, it is
kind of pointless for Cocoon to implement a SessionListener since it would
have to do it through a SessionBindingListener anyway.

Ralph


Sylvain Wallez said:
> Hunsberger, Peter wrote:
>
>
> Or you can also add store in a session attribute an object implementing
> javax.servlet.http.HttpSessionBindingListener that will be called
> whenever the session expires. This allows to perform any cleanup that
> you need.
>
> Remember however, that holding costly resources like DB connections
> between request is generally considered bad practice in webapps, because
> of this very problem of detecting that a user has left.
>
> Sylvain
>
> --
> Sylvain Wallez                                  Anyware Technologies
> http://www.apache.org/~sylvain           http://www.anyware-tech.com
> { XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
>
>

Reply via email to