Обработка «сеанса истекла» в веб-приложении JSF, работающем в JBoss AS 5 [дубликаты]

This question already has an answer here:

javax.faces.application.ViewExpiredException: View could not be restored 10 answers

Этот вопрос связан с другим моим вопросом & quot;Как перенаправить на страницу входа, когда сеанс истек в веб-приложении Java?& Quot ;. Вот что я пытаюсь сделать:

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 application after the session has expired. So, as suggested in 'JSF Logout and Redirect', I've implemented a filter which checks for the session expired condition and redirects the user to a session-timed-out.jsp page, if the session has expired. I've added SessionExpiryCheckFilter on top of all other filter definitions in web.xml, so that my session expiry check will get the first hit always.

Теперь приходитchallenge I'm facing, Поскольку я использую JBoss AS, когда сеанс истек, JBoss автоматически перенаправляет меня на страницу входа (обратите внимание, что фильтр проверки истечения сеанса не вызывается). Итак, после входа в систему мой SessionExpiryCheckFilter перехватывает запрос и видит, что сеанс доступен. Но это исключениеjavax.faces.application.ViewExpiredException: viewId:/mypage.faces - View /mypage.faces could not be restored.

Кто-нибудь сталкивался с этой проблемой раньше? Есть идеи, чтобы решить эту проблему?

Ответы на вопрос(5)

Ваш ответ на вопрос