Handling 'session expired' in JSF web application, running in JBoss AS 5 [duplicate]
问题 This question already has answers here : javax.faces.application.ViewExpiredException: View could not be restored (10 answers) Closed 3 years ago . This question is related to my other question "How to redirect to Login page when Session is expired in Java web application?". Below is what I'm trying to do: I've a JSF web application running on JBoss AS 5 When the user is inactive for, say 15 minutes, I need to log out the user and redirect him to the login page, if he is trying to use the