Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Developer's Guide

- Previous: session-manager
- Next: ssl

## session-properties

Specifies session properties.

### Superelements

session-config (`sun-web.xml`)

### Subelements

The following table describes subelements for the `session-properties` element.

Table A–105 `session-properties` Subelements

Element | Required | Description
--- | --- | ---
property (with attributes) | zero or more | Specifies a property, which has a name and a value.

### Properties

The following table describes properties for the `session-properties` element.

Table A–106 `session-properties` Properties

Property | Default | Description
--- | --- | ---
`timeoutSeconds` | `1800` | Specifies the default maximum inactive interval (in seconds) for all sessions created in this web module. If set to `0` or less, sessions in this web module never expire. If a `session-timeout` element is specified in the `web.xml` file, the `session-timeout` value overrides any `timeoutSeconds` value. If neither `session-timeout` nor `timeoutSeconds` is specified, the `timeoutSeconds` default is used. Note that the `session-timeout` element in `web.xml` is specified in minutes, not seconds.
`enableCookies` | `true` | Uses cookies for session tracking if set to `true`.
`enableURLRewriting` | `true` | Enables URL rewriting. This provides session tracking via URL rewriting when the browser does not accept cookies. You must also use an `encodeURL` or `encodeRedirectURL` call in the servlet or JSP.

- Previous: session-manager
- Next: ssl

- © 2010, Oracle Corporation and/or its affiliates