Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Redirecting to login page after session timeout

843844May 10 2010 — edited May 19 2010
Hi,
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 13 2010
Added on May 10 2010
6 comments
1,241 views