I want to create a filter so I can recognize when a session has timed out and redirect to a notfication page (rather than just taking them to a login.jsp page).
The problem is I cannot get the doFilter method to fire.
I am working with code from this article:
http://techieexchange.blogspot.com/2008/02/jsf-session-expiry-timeout-solution.html
My application is a RichFaces application. I start up my page by calling "Users.jsp" which then converts into "Users.jsf" and runs a page with RichFaces components.
The listener method does fire on the timeout event...however, SessionTimeoutFilter never executes.
Here is how I have it configured in my web.xml
<filter>
<display-name>SessionTimeoutFilter</display-name>
<filter-name>SessionTimeoutFilter</filter-name>
<filter-class>security.SessionTimeoutFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>SessionTimeoutFilter</filter-name>
<url-pattern>*.jsf</url-pattern>
</filter-mapping>
Is this a valid way to handle timeouts? Does RichFaces offer an alternative method?
My goals are:
Can RichFaces help? Can I run my current filter as is?