Hi all, I have a question about session handling in Tapestry5. I have a @SessionState protected User user;
that works as expected I wanted to perform some cleanup when calling a logout link: the action link listener is made as this: public Object onActionFromLink() { requestGlobals.getHTTPServletRequest().getSession().invalidate(); return Index.class; } I don't know if this is important (I guess not) but the method is in a component and not direclty in a page (so that I can render the link only in protected pages ) To centralize the cleanup that could happen both on logout action and on session timeout I have implemented the User with the HttpSessionListener. The problem is that after the invalidate() call the method public void sessionDestroyed(HttpSessionEvent se) { is called as intended but the User object is empty as it was just instantiated and in fact debugging I can see that is a different instance from the one created when the session was started. I can certainly find other ways (a RequestFilter?) but I would like to understand what is going on. TIA -- ================================================== dott. Ivano Mario Luberti Archimede Informatica societa' cooperativa a r. l. Sede Operativa Via Gereschi 36 - 56126- Pisa tel.: +39-050- 580959 tel/fax: +39-050-9711344 web: www.archicoop.it ================================================== --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org