Session Parameters Property Editor

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.

note 

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.

Adding a session parameter

To add a session parameter:

  1. From the Session Parameter property editor, click Add.
  2. Select the parameter name in the Param Name field and type its value in the Param Value field. See List of Parameters below for possible parameters.
  3. Edit the description of the parameter in the Description field.
  4. Click OK. The information you have specified is reflected in the property editor. You may add additional parameters by clicking Add.

Editing a session parameter

To edit a session parameter:

  1. From the Session Parameter property editor, select the parameter and click Edit.
  2. Change the parameter name, value, and description in the dialog box. See List of Parameters below for possible parameters.
  3. Click OK. The information you have modified is reflected in the property editor.

Removing a session parameter

To remove a session parameter:

List of Parameters

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.
note  The Session Timeout property in the Deployment pane of the web.xml property sheet specifies minutes, not seconds.
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

Legal Notices