Home » Eclipse Projects » Remote Application Platform (RAP) » Logout (RAP 2.1)
Logout (RAP 2.1) [message #1063641] |
Thu, 13 June 2013 10:56  |
Eclipse User |
|
|
|
Hello,
I am migrating our RWT standalone application from RAP 1.4 to 2.1 (RC3).
Most of the changes worked without problems and our application is running with the new version.
The only unsolved problem is the logout procedure.
We used some old code examples to achieve the logout in RAP 1.4.
I tried to rework it with samples from the forum.
But I have not found a working solution.
Especially with the new multi-tab feature.
The tab that executes the logout (http session invalidation) will be logged out successfully and redirected to the login page.
The additional tabs are running into bug 390711 because we use form authentication in tomcat.
I tried to use the custom jsp from the bug. But if the ExitConfirmation is enabled and the user refuses the json redirect the client will crash with javascript error:
Error: TypeError: a is undefined
What is the preferred way to implement a logout procedure in RAP 2.1?
Thanks,
Oliver
|
|
| | | |
Re: Logout (RAP 2.1) [message #1063824 is a reply to message #1063811] |
Fri, 14 June 2013 07:50   |
Eclipse User |
|
|
|
Hi Ralf,
thanks for the explanation.
I understand now that there is no easy fix for bug 390711.
These were the steps that led to that error:
1. Open multiple tabs for the same application/session
2. In one tab the user presses logout and the http session is invalidated and the user is sent to logout/login page
3. The other tabs will be informed of the logout with the next request (tomcat redirects to login page because of the invalid session cookie)
4. That XHR request fails and the json redirect to the login page is issued (using the sample jsp login page from bug 390711)
5. Before the json redirect is processed the browser exit confirmation triggers
6. If the user denies the browser exit confirmation the javascript error occurs
Everything works fine if the user confirms the exit confirmation
This is the complete error message:
Client Error
Details:
Error: TypeError: a is undefined
Script:
{
"head": {
"redirect": "https://localhost/App/start"
}
}
fileName: https://localhost/App/rwt-resources/rap-client.js
lineNumber: 228
columnNumber: 130
Stack: rwt.remote.MessageProcessor.processMessage@https://localhost/App/rwt-resources/rap-client.js:228
.members._handleSuccess@https://localhost/App/rwt-resources/rap-client.js:232
@https://localhost/App/rwt-resources/rap-client.js:96
rwt.remote.Request.prototype._onReadyStateChange@https://localhost/App/rwt-resources/rap-client.js:96
.statics.bind/d@https://localhost/App/rwt-resources/rap-client.js:14
Debug: off
Request: {"head":{"requestCounter":6},"operations":[["set","w23",{"activeControl":"w49"}],["set","w49",{"selection":["w108"]}],["notify","w49","Selection",{"item":"w108","detail":null,"shiftKey":false,"ctrlKey":false,"altKey":false}],["set","w49",{"focusItem":"w108"}],["notify","w49","MouseDown",{"button":1,"x":512,"y":401,"time":125465,"shiftKey":false,"ctrlKey":false,"altKey":false}],["notify","w49","MouseUp",{"button":1,"x":512,"y":401,"time":125577,"shiftKey":false,"ctrlKey":false,"altKey":false}],["set","w1",{"cursorLocation":[512,401],"focusControl":"w49"}]]}
Thanks,
Oliver
|
|
| | |
Goto Forum:
Current Time: Wed Jul 23 13:28:23 EDT 2025
Powered by FUDForum. Page generated in 0.07476 seconds
|