-
1. Re: Redirecting on Session Expiration in RF 4
mpgong Jan 17, 2012 3:32 PM (in response to mpgong)It looks like i can keep the session alive if i create a servlet and make a call to it.
But once the session expires i lose my beans which is expected but when i call my servlet i don't get the javax.faces.application.ViewExpiredException and the page doesn't forward.
I have this in the web.xml
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/pages/SessionExpired.xhtml</location>
</error-page>
But not sure why it isn't working, anyone know what i might be doing wrong.
Thanks
-
2. Re: Redirecting on Session Expiration in RF 4
lfryc Jan 20, 2012 10:58 AM (in response to mpgong)Michael,
I know this is not answer to your question, but
you could use a4j:poll to keep the session open by the time page is open.
When using reasonable polling interval, then your server won't get overwhelmed.
-
3. Re: Redirecting on Session Expiration in RF 4
mpgong Jan 20, 2012 11:38 AM (in response to lfryc)1 of 1 people found this helpfulSince i could not figure out why using
<error-page>
<exception-type>javax.faces.application.ViewExpiredException</exception-type>
<location>/pages/SessionExpired.xhtml</location>
</error-page>
doesn't work for me i decided to go down the path of using jquery IdleTimeout plugin. So i set up the web xml to have the session timeout and use the jquery plugin to show the notification and perform the redirect for me.