Partial AJAX calls don't handle container session timeouts
Posted: 09 Aug 2011, 16:24
Hi,
I'm using the following:
Glassfish 3.1
Mojarra 2.1.0 (included with Glassfish)
Primefaces 3.0M2
I'm using container security with form based login. I have a secured page that contains a p:commandButton that updates part of the page. All works fine whilst the user is logged in.
Once the session times out the application appears to lock up. What is happening is that the partial AJAX request from the button is expecting an XML response, but Glassfish sends it the HTML for the login page instead (as it should, the session has timed out). Would it be possible to get the partial request code to handle this situation, maybe refresh the whole page to allow the container redirect to work?
I've created a small war file/eclipse project to demonstrate the problem. I can provide that on request.
Regards,
Nick
I'm using the following:
Glassfish 3.1
Mojarra 2.1.0 (included with Glassfish)
Primefaces 3.0M2
I'm using container security with form based login. I have a secured page that contains a p:commandButton that updates part of the page. All works fine whilst the user is logged in.
Once the session times out the application appears to lock up. What is happening is that the partial AJAX request from the button is expecting an XML response, but Glassfish sends it the HTML for the login page instead (as it should, the session has timed out). Would it be possible to get the partial request code to handle this situation, maybe refresh the whole page to allow the container redirect to work?
I've created a small war file/eclipse project to demonstrate the problem. I can provide that on request.
Regards,
Nick