Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Starting of a new session
Starting of a new session [message #513578] Wed, 10 February 2010 10:30 Go to next message
Dmitry Pryadkin is currently offline Dmitry Pryadkin
Messages: 145
Registered: July 2009
Senior Member
Hello Rap people,

How can I start a new session?

Ideally, I would like to have an action for that. Let's say it's
File/Exit. And when this action is executed, browser gets refreshed with
a brand new session.

Thanks,

Dmitry
Re: Starting of a new session [message #513616 is a reply to message #513578] Wed, 10 February 2010 12:04 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger Herrmann
Messages: 563
Registered: July 2009
Senior Member
See the FAQ:
http://wiki.eclipse.org/RAP/FAQ#How_to_switch_locale.2Flangu age_on_user_action.3F

On 10.02.2010 16:30, Dmitry Pryadkin wrote:
> Hello Rap people,
>
> How can I start a new session?
>
> Ideally, I would like to have an action for that. Let's say it's
> File/Exit. And when this action is executed, browser gets refreshed with
> a brand new session.
>
> Thanks,
>
> Dmitry
Re: Starting of a new session [message #513675 is a reply to message #513616] Wed, 10 February 2010 13:56 Go to previous messageGo to next message
Dmitry Pryadkin is currently offline Dmitry Pryadkin
Messages: 145
Registered: July 2009
Senior Member
Rüdiger,

I'm sorry - there's one more question. Will I get a new session id after
that?

Rüdiger Herrmann wrote:
> See the FAQ:
> http://wiki.eclipse.org/RAP/FAQ#How_to_switch_locale.2Flangu age_on_user_action.3F
>
>
> On 10.02.2010 16:30, Dmitry Pryadkin wrote:
>> Hello Rap people,
>>
>> How can I start a new session?
>>
>> Ideally, I would like to have an action for that. Let's say it's
>> File/Exit. And when this action is executed, browser gets refreshed with
>> a brand new session.
>>
>> Thanks,
>>
>> Dmitry
Re: Starting of a new session [message #513685 is a reply to message #513675] Wed, 10 February 2010 09:48 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger Herrmann
Messages: 563
Registered: July 2009
Senior Member
On 10.02.2010 19:56, Dmitry Pryadkin wrote:
> Rüdiger,
>
> I'm sorry - there's one more question. Will I get a new session id after
> that?
No, the session id will stay the same. Is it that you need a new id?

>
> Rüdiger Herrmann wrote:
>> See the FAQ:
>> http://wiki.eclipse.org/RAP/FAQ#How_to_switch_locale.2Flangu age_on_user_action.3F
>>
>>
>> On 10.02.2010 16:30, Dmitry Pryadkin wrote:
>>> Hello Rap people,
>>>
>>> How can I start a new session?
>>>
>>> Ideally, I would like to have an action for that. Let's say it's
>>> File/Exit. And when this action is executed, browser gets refreshed with
>>> a brand new session.
>>>
>>> Thanks,
>>>
>>> Dmitry
Re: Starting of a new session [message #513753 is a reply to message #513685] Thu, 11 February 2010 01:26 Go to previous messageGo to next message
Dmitry Pryadkin is currently offline Dmitry Pryadkin
Messages: 145
Registered: July 2009
Senior Member
Rüdiger,

You are right, I need a new Id.

Dmitry

Rüdiger Herrmann wrote:
> On 10.02.2010 19:56, Dmitry Pryadkin wrote:
>> Rüdiger,
>>
>> I'm sorry - there's one more question. Will I get a new session id after
>> that?
> No, the session id will stay the same. Is it that you need a new id?
>
>>
>> Rüdiger Herrmann wrote:
>>> See the FAQ:
>>> http://wiki.eclipse.org/RAP/FAQ#How_to_switch_locale.2Flangu age_on_user_action.3F
>>>
>>>
>>>
>>> On 10.02.2010 16:30, Dmitry Pryadkin wrote:
>>>> Hello Rap people,
>>>>
>>>> How can I start a new session?
>>>>
>>>> Ideally, I would like to have an action for that. Let's say it's
>>>> File/Exit. And when this action is executed, browser gets refreshed
>>>> with
>>>> a brand new session.
>>>>
>>>> Thanks,
>>>>
>>>> Dmitry
Re: Starting of a new session [message #513968 is a reply to message #513753] Thu, 11 February 2010 15:07 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger Herrmann
Messages: 563
Registered: July 2009
Senior Member
On 11.02.2010 07:26, Dmitry Pryadkin wrote:
> Rüdiger,
>
> You are right, I need a new Id.
Well, if you really need a new session id (I am curious for what
reason), then you could experiment with invalidating the underlying http
session before forcing the client to refresh. See
HttpSession#setMaxInactiveInterval()
However, I consider this a bad hack - so do it at you own risk and
better think hard about a way to avoid at all :)

>
> Dmitry
>
> Rüdiger Herrmann wrote:
>> On 10.02.2010 19:56, Dmitry Pryadkin wrote:
>>> Rüdiger,
>>>
>>> I'm sorry - there's one more question. Will I get a new session id after
>>> that?
>> No, the session id will stay the same. Is it that you need a new id?
>>
>>>
>>> Rüdiger Herrmann wrote:
>>>> See the FAQ:
>>>> http://wiki.eclipse.org/RAP/FAQ#How_to_switch_locale.2Flangu age_on_user_action.3F
>>>>
>>>>
>>>>
>>>> On 10.02.2010 16:30, Dmitry Pryadkin wrote:
>>>>> Hello Rap people,
>>>>>
>>>>> How can I start a new session?
>>>>>
>>>>> Ideally, I would like to have an action for that. Let's say it's
>>>>> File/Exit. And when this action is executed, browser gets refreshed
>>>>> with
>>>>> a brand new session.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Dmitry


--
Rüdiger Herrmann
http://eclipsesource.com
Previous Topic:Custom Widget: Composing Qooxdoo Widgets in CanvasLayout, the widget is not shown.
Next Topic:session does not timeout when expected
Goto Forum:
  


Current Time: Wed Aug 20 03:01:57 EDT 2014

Powered by FUDForum. Page generated in 0.01617 seconds