Redirecting to login page after session timeout
843844May 10 2010 — edited May 19 2010Hi,
i have developed an web application using JSF with richfaces.
In that, if the user remains idle in the application for more than 15min then their session should expire.
i have tried it by giving <session-timeout> tag value as 15 min in web.xml.
but i don't know how to redirect the user to the login page after session timeout.
And also I have to enter the session time of each user in the database. To do this i have a function in the bean. I can call this function when the user click the logout button and then redirect the user to login page from that function. But i cannot call this function when the session expires automatically after the session time out.
I'm trying this for past two days.
please give me some ideas to solve this issue.
Regards,
Indu
Edited by: indu_lsrwrd on May 11, 2010 10:35 PM