The session parameters specify how the sessions behave in the Sun ONE Application Server. You open the Session Param property editor by selecting the Session Param property and its ellipsis (...) button from the Sun ONE AS pane of the web.xml property sheet.
![]() |
The term user session refers to a series of user application interactions that are tracked by the server. The session itself resides in the server. For each request, the client transmits the session ID in a cookie or, if the browser does not allow cookies, the server automatically writes the session ID into the URL. The Sun ONE Application Server supports the servlet standard session interface, called HttpSession, for all session activities. This interface enables you to write portable, secure servlets. |
To add a session parameter:
To edit a session parameter:
To remove a session parameter:
The following describes session parameters:
Property Name | Value | ||
---|---|---|---|
timeoutSeconds |
The default maximum inactive interval, in seconds,
for all sessions created in this web module,
only if a Session Timeout property has not
been specified in
the Deployment pane of the web.xml property sheet.
If set to 0 or less, sessions in this web module never expire.
|
||
enableCookies | If this property is set to true, cookies are used for session tracking. | ||
enableURLRewriting | If this property is set to true, URL rewriting is enabled. 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. | ||
idLengthBytes | The number of bytes in this web module’s session ID. |
See also | |
Web Module Property Sheet: Sun ONE AS Tab |