Step 1: Implement javax.servlet.http.HttpSessionListener in a class.

        Step 2: Tell your web.xml to use your listener

        <listener>
                <listener-class>
                my.listener
                </listener-class>
        </listener>

        Step 3: in your sessionDestroyed() method of the listener, persist
whatever you want to persist.

> -----Original Message-----
> From: Cosmin Bucur [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, November 22, 2005 8:55 PM
> To: Tapestry users
> Subject: How can I do something right before a session is timedout or
> closed ?
> 
> How can I do something right before a session is timedout or closed ?
> 
> I would also like to persist it the session objects to a db , but only
> once
> before the session is closed .
> 
> Thx
> cosmin
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to