cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Gow <>
Subject Re: session time out
Date Wed, 31 Jan 2001 22:04:55 GMT
Well, there is no guaranteed way of being notified of when a session 
expires, but what I've done in the past is added a bogus object to the 
session that implements HttpSessionBindingListener (see the Servlet 
JavaDocs for more detail), and carried out my action in the objectUnbounded 
event (this would get called when the session expires).  Of course, whether 
or not this event is fired when your session expires is left completely up 
to your Servlet container implementation.  This has been fixed in the 2.3 
Servlet API spec and an explicit event is fired when your session is 
expired (check out Jason Hunter's article on JavaWorld for details 
( )


At 10:43 PM 1/31/01 +0100, you wrote:
>         I would like capture the event "time_out"
>         of the object session of cocoon,
>         so that i can write this event in the log file ( or in a table)
>         of my application.
>         How can i do it?
>         thanks a lot
>         Graziano
>Please check that your question has not already been answered in the
>FAQ before posting. <>
>To unsubscribe, e-mail: <>
>For additional commands, e-mail: <>

View raw message