webtier@glassfish.java.net

Re: Webcontainer Session Timeout - Default Value?

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Tue, 27 Jan 2009 10:04:11 -0800

On 01/26/09 06:24, glassfish_at_javadesktop.org wrote:
> Thank you, Jan;
>
> But how/where is this configured/described? Say if i want to set it to 60 minutes to all webappliations deployed, how to do that?
>

The default session timeout (30 minutes) is documented in the GlassFish
Developer Guide, see
  http://docs.sun.com/app/docs/doc/820-4502/beaxr?l=en&a=view

Currently, it is documented "indirectly", via the "timeoutSeconds"
session property in sun-web.xml. I could not find any documentation of
the default <session-timeout> in web.xml, but I may not have looked in
all places. Cc'ing June.

If you wanted to change the default session timeout to 60 minutes and have
it take effect for all webapps, I suggest you add a session-config
element to
the domain's default-web.xml, as follows:

  <session-config>
    <session-timeout>60</session-timeout>
  </session-config>

Let me know if you have any questions about this approach.

Thanks,

Jan

> Ivo
> [Message sent by forum member 'jdrive' (jdrive)]
>
> http://forums.java.net/jive/thread.jspa?messageID=328165
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>