On Sun, 26 Sep 2010 11:53:44 -0300, kamath_svk <kamath...@yahoo.co.in>
wrote:
As we know if session is expired "sessionDestroyed" method is called by
tapestry.
This method is not called by Tapestry, but by the servlet container
(server).
(Please refer the code)
http://eubauer.de/kingsware/2010/02/04/track-login-and-logout-of-users-with-tapestry-5/
I was referring to a scenario wherein if session is expired user is
automatically redirected to start or index page.
It's only possible to redirect when a request is made.
So i was asking, how to
redirect to start page from "sessionDestroyed" method.
It's not possible. Instead, create a RequestFilter that checks if the
session exists and the user is logged in, then use Redirect.sendRequest()
if needed. This is similar to the approach in the URL you provided.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org