cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralph Goers" <Ralph.Go...@dslextreme.com>
Subject Re: Session Timeout listener (was: RE: [RT] The API for the requestobject)
Date Tue, 06 Jul 2004 21:58:30 GMT
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 }
>
>


Mime
View raw message