Session issue [message #48262] |
Wed, 19 September 2007 15:43  |
Eclipse User |
|
|
|
Originally posted by: nikoleta.tetracom.com
Hello all,
I've noticed a strange behavior of the RAP. I've got a GSP page, inside
my application directory on Tomcat, and the GSP has a link leading to my
RAP application. Session attributes are added in the GSP page. In the
moment my RAP application loads, all attributes are gone. The sesseion
is the same (I can see it from its ID), but there are no of the
attributes I have set in the GSP page. Is this a bug or a feature? How
can I set attributes to the session without to lose them ?
|
|
|
Re: Session issue [message #49310 is a reply to message #48262] |
Mon, 24 September 2007 08:03  |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Hi,
RAP has a means to clear an existing session, that's what we call a
session restart. This happens for example when the user clicks he
browsers' refresh button. In LifeCycleServiceHandler#isSessionRestart()
the decision whether a session should be restarted is made.
It seems that this mechanism is triggered in the case you describe. If
you only want to pass attributes from the existing session to the RAP
application you could change the link like this:
http://host:1234/rap?startup=myApp&myParam1=a&myPara m2=b.
If it's required that the attributes of the existing session are still
available after the session restart, I don't know of a short-term
solution to make this work. Even though I would agree that this is a
valid request. Feel free to file a bug.
Cheers,
RĂ¼diger
Nikoleta Ivanova wrote:
> Hello all,
> I've noticed a strange behavior of the RAP. I've got a GSP page, inside
> my application directory on Tomcat, and the GSP has a link leading to my
> RAP application. Session attributes are added in the GSP page. In the
> moment my RAP application loads, all attributes are gone. The sesseion
> is the same (I can see it from its ID), but there are no of the
> attributes I have set in the GSP page. Is this a bug or a feature? How
> can I set attributes to the session without to lose them ?
|
|
|
Powered by
FUDForum. Page generated in 0.01805 seconds