You can set the session timeout parameter to 45 minutes in web.xml, like this
<session-config> <session-timeout>45</session-timeout> </session-config>
you can also easily handle this exception on a separate page by adding the following code to your web.xml
<error-page> <exception-type>javax.faces.application.ViewExpiredException</exception-type> <location>/exception/sessionexpired.xhtml</location> </error-page>
Kerem baydoΔan
source share