Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Form based login & Session expiry(Client messes up with 302 and form from server)
Form based login & Session expiry [message #1283496] Thu, 03 April 2014 13:40 Go to next message
Fabian Henniges is currently offline Fabian HennigesFriend
Messages: 6
Registered: March 2013
Junior Member
Is there a common way or workaround for failed ajax requests due to session expiry?

index.php/fa/17886/0/

index.php/fa/17885/0/
Re: Form based login & Session expiry [message #1288653 is a reply to message #1283496] Tue, 08 April 2014 19:08 Go to previous message
Fabian Henniges is currently offline Fabian HennigesFriend
Messages: 6
Registered: March 2013
Junior Member
One solution is to let the client end the session just before the server would do it. Like home banking where session expiry is displayed and you get redirected after timeout.

To keep track of xml http requests I´ve redefined rwt.remote.Request.createXHR using a generated script and the JavaScriptExecutor. It also contains the result of RWT.getUISession().getHttpSession().getMaxInactiveInterval() as maxInactiveInterval.

The script uses setTimeout function to call a logoutRedirect function just before session expiry. That function calls a ServiceHandler to end the current session and reloads the page.

Works at least for IE8, current Firefox and Chrome.

Previous Topic:Custom Table/Column Headers
Next Topic:Not able to propagate JAAS Subject
Goto Forum:
  


Current Time: Tue Apr 23 16:53:48 GMT 2024

Powered by FUDForum. Page generated in 0.02902 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top