Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » RAP, browser widget, cookies and "session timed out"?
RAP, browser widget, cookies and "session timed out"? [message #658924] Thu, 10 March 2011 13:01 Go to next message
Kristian Rink is currently offline Kristian RinkFriend
Messages: 36
Registered: July 2009
Member
Folks;

using a RAP application and (partially) a legacy JSP/servlet based
application which is supposed to run inside a Browser widget, so far.
At the moment, the JSP/servlet application tends to keep some
information in cookies. Right now, I can launch the RAP application,
open the Browser widget (and the application in it) and do things
inside the Browser widget, by then. However, as soon as I want to do
anything else in the RAP ui by then, I end up with the infamous "server
session timed out" screen, so far lacking a real understanding why this
does happen. Can anyone enlighten me here on (a) what is happening
and/or (b) how to track it down?

TIA and all the best,
Kristian
Re: RAP, browser widget, cookies and "session timed out"? [message #659388 is a reply to message #658924] Sun, 13 March 2011 13:18 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Kristian,

The "infamous server session timed out screen" is shown when the client
receives the initial HTML page for RAP as a response to an Ajax request.
This in turn happens when the server receives a request without a session
id (or some request parameters missing).

I'd suggest to track all request sent by the browser (e.g. using the
FireBug addon) and see what happens to the session id. Maybe the other
servlet changes or invalidates the session for this domain?

Hope this helps, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: RAP, browser widget, cookies and "session timed out"? [message #661536 is a reply to message #659388] Fri, 25 March 2011 07:59 Go to previous message
Kristian Rink is currently offline Kristian RinkFriend
Messages: 36
Registered: July 2009
Member
Hi Ralf;

and, first off, thanks a bunch for your message. Finally got some time
to peek into this again...


> The "infamous server session timed out screen" is shown when the
> client receives the initial HTML page for RAP as a response to an
> Ajax request. This in turn happens when the server receives a request
> without a session id (or some request parameters missing).

How does RAP on the client side keep track of the session? Using
JSESSIONID all along with jetty? If so, I have a modestly clear idea
what the problem is (RAP session id and "inner" session id overwriting
each other), but have no real idea how to change things.

> I'd suggest to track all request sent by the browser (e.g. using the
> FireBug addon) and see what happens to the session id. Maybe the
> other servlet changes or invalidates the session for this domain?

Well, yes, played with Firebug and mainly saw a few cookies and session
store ids flying around, but in the end I wasn't really sure what I am
looking for to be honest. Gonna dive deeper into that the next couple
of days...

Meanwhile, thanks a bunch for your time, best regards,
Kristian
Previous Topic:SWT.LINE_DOT not implemented
Next Topic:download widget
Goto Forum:
  


Current Time: Fri Apr 19 05:52:03 GMT 2024

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

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

Back to the top