cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Cordes <mcord...@maine.edu>
Subject Re: session time out
Date Thu, 01 Feb 2001 15:01:28 GMT
It seems to me one could extend the HttpSession class with the 
necessary functionality and replace 'HttpSession session' with
'MyClassThatExtendsHttpSession' session in 
/org/apache/cocoon/processor/xsp/xsp-java.xsl 

-matt

On Wed, Jan 31, 2001 at 05:04:55PM -0500, Chris Gow wrote:
> 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 
> (http://www.javaworld.com) )
> 
> Chris
> 
> 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. <http://xml.apache.org/cocoon/faqs.html>
> >
> >To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> >For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 

Mime
View raw message