Sun Java System Application Server Enterprise Edition 8.1 2005Q2 Administration Reference

- Previous: session-manager
- Next: ssl

## session-properties

Specifies session properties.

### Superelements

session-config

### Subelements

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

Table 1–142 `session-properties` Subelements

Element | Required | Description
--- | --- | ---
property | zero or more | Specifies a property or a variable.

### Attributes

Table 1–143 `session-properties` Attributes

Attribute | Default | Description
--- | --- | ---
`timeout-in-seconds` | `600` | (optional) 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 `timeout-in-seconds` value. If neither `session-timeout` nor `timeout-in-seconds` is specified, the `timeout-in-seconds` default is used. Note that the `session-timeout` element in `web.xml` is specified in minutes, not seconds.

### Properties

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

Table 1–144 `session-properties` Properties

Property | Default | Description
--- | --- | ---
`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 JavaServer PagesTM (JSPTM) page.
`idLengthBytes` | `128` | Specifies the number of bytes in this web module’s session ID.

- Previous: session-manager
- Next: ssl

- © 2010, Oracle Corporation and/or its affiliates