Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Global session timeout(Change timeout of all current sessions)
Global session timeout [message #548502] Thu, 22 July 2010 04:09 Go to next message
Eclipse UserFriend
Hi!

I want to be able to change the currently set timeout of all open sessions at once. So I thought the best way would be to use a/the RAP system parameter for session timeout.

In the FAQ I read: "To change the timeout value, adjust the setting on the "Main" tab."
This results in launch properties:

<intAttribute key="org.eclipse.rap.launch.sessionTimeout" value="300"/>
<booleanAttribute key="org.eclipse.rap.launch.useSessionTimeout" value="true"/>


I was not able to manipulate the parameter org.eclipse.rap.launch.sessionTimeout while running the system,

System.setProperty("org.eclipse.rap.launch.sessionTimeout", String.valueOf(300));


or even the set it manually without having the check-button checked in the main tab. Like this:

-Dorg.eclipse.rap.launch.sessionTimeout=300
-Dorg.eclipse.rap.launch.useSessionTimeout=true


Is there some more knowledge about the handling of sessionTimeout available?

The other way would be to grab all currently open sessions, iterate and somehow change their timeouts. I read the most important discussions about timeout and session handling from the forum but can still not imagine how this could look like in code.

Best regards,
Bassspieler
Re: Global session timeout [message #549089 is a reply to message #548502] Sat, 24 July 2010 04:41 Go to previous message
Eclipse UserFriend
When running RAP on Equinox you can specify the session timeout of Jetty
with the following system property:
org.eclipse.equinox.http.jetty.context.sessioninactiveinterv al= <timeout
in sec>

When deploying RAP in a servlet container (WAR) you can specify the
seesion timout (in minutes if I recall correctly) in the web.xml. See
the servlet documentation for details.

At runtime, the session timeout can only be changed programatically and
only for each session individually (see the HttpSession JavaDoc).

HTH
RÜdiger

On 22.07.2010 10:09, Bassspieler wrote:
> Hi!
>
> I want to be able to change the currently set timeout of all open
> sessions at once. So I thought the best way would be to use a/the RAP
> system parameter for session timeout.
>
> In the FAQ I read: "To change the timeout value, adjust the setting on
> the "Main" tab."
> This results in launch properties:
>
> <intAttribute key="org.eclipse.rap.launch.sessionTimeout" value="300"/>
> <booleanAttribute key="org.eclipse.rap.launch.useSessionTimeout"
> value="true"/>
>
>
> I was not able to manipulate the parameter
> org.eclipse.rap.launch.sessionTimeout while running the system,
> System.setProperty("org.eclipse.rap.launch.sessionTimeout",
> String.valueOf(300));
>
> or even the set it manually without having the check-button checked in
> the main tab. Like this:
>
> -Dorg.eclipse.rap.launch.sessionTimeout=300
> -Dorg.eclipse.rap.launch.useSessionTimeout=true
>
>
> Is there some more knowledge about the handling of sessionTimeout
> available?
>
> The other way would be to grab all currently open sessions, iterate and
> somehow change their timeouts. I read the most important discussions
> about timeout and session handling from the forum but can still not
> imagine how this could look like in code.
>
> Best regards,
> Bassspieler
Previous Topic:CSS in custom widget
Next Topic:RAP 1.3 and XHTML
Goto Forum:
  


Current Time: Mon Jul 07 13:31:00 EDT 2025

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

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

Back to the top