Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Delivered-To: moderator for cocoon-users@xml.apache.org Received: (qmail 97614 invoked from network); 31 Jan 2001 22:03:14 -0000 Received: from smtp.tor.norigen.net (204.50.174.20) by h31.sny.collab.net with SMTP; 31 Jan 2001 22:03:14 -0000 Received: from edmonton.digitalfairway.com (norigen-gw2-digitalfairway.tor.norigen.net [204.50.172.179]) by smtp.tor.norigen.net (Sun Internet Mail Server sims.4.0.1999.06.13.00.20) with ESMTP id <0G810032ARWTU9@smtp.tor.norigen.net> for cocoon-users@xml.apache.org; Wed, 31 Jan 2001 17:02:53 -0500 (EST) Date: Wed, 31 Jan 2001 17:04:55 -0500 From: Chris Gow Subject: Re: session time out In-reply-to: X-Sender: cgow,digitalfairway.com@pop3.psinet.com To: cocoon-users@xml.apache.org Message-id: <5.0.0.25.0.20010131165734.00b1a650@pop3.psinet.com> MIME-version: 1.0 X-Mailer: QUALCOMM Windows Eudora Version 5.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7BIT X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N 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. > >To unsubscribe, e-mail: >For additional commands, e-mail: