Eclipse RAP - Firefox doesn't forget session

Posted by Fritz H on Stack Overflow See other posts from Stack Overflow or by Fritz H
Published on 2009-07-29T23:39:55Z Indexed on 2010/04/09 2:33 UTC
Read the original article Hit count: 558

We've got an Eclipse RAP application that's behaving a bit strangely in Firefox - two distinct problems.

When you browse around, you can click on a button in one part of the system. This opens a popup window like so:

IWorkbenchBrowserSupport bs;
bs = PlatformUI.getWorkbench().getBrowserSupport();
int style = IWorkbenchBrowserSupport.AS_EXTERNAL;
IWebBrowser b = bs.createBrowser(style, getRandomID(), "Hello world", "");
b.openURL(new URL(...));

where the URL is another servlet in the application. This servlet is in the same runtime, but has nothing to do with RAP - it takes a binary blob from in-memory storage and dumps it in the output stream.

Problem 1: This causes the HTTP session to die in firefox, and shows the "session expired" RAP error page with a link to restart the session.

Problem 2: Now, when you click on the link to restart the session, it shows the application's dialog again, but the session expired error is shown again the moment you do anything. This prevents the user from using the system again, unless Firefox is closed down completely and restarted. A quick peek with FireBug reveals that the JSESSIONID passed by Firefox does not change.

Has anyone seen this before?

© Stack Overflow or respective owner

Related posts about firefox

Related posts about eclipse