Specifying Session Manager and its Parameters

A session manager automatically creates new session objects whenever a new session starts.

note  In some circumstances, clients do not join the session, for example, if the session manager uses cookies and the client does not accept cookies.

Sun ONE Application Server 7 gives you these session management options:

You can select one of these session managers and its parameters from the Sun ONE AS pane of the web.xml property sheet.

StandardManager

To specify the StandardManager and its parameters:

  1. Click the Sun ONE AS pane of the web.xml property sheet.
  2. Click the Persistence Type value field and select memory from the drop-down list.
  3. Click the Manager Param value field and click the ellipsis (...) button to open the Session Manager Parameters property editor.
  4. Click Add.
  5. 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.
  6. Edit the description of the parameter in the Description field.
  7. Click OK. The parameter you have specified is reflected in the Session Manager Parameters property editor. You may add additional parameters by clicking Add.
  8. Click OK.

PersistentManager

To specify the PersistentManager and its parameters:

  1. Click the Sun ONE AS pane of the web.xml property sheet.
  2. Click the Persistence Type value field and select file from the drop-down list.
  3. click the Manager Param value field and click the ellipsis (...) button to open the Session Manager Parameters property editor.
  4. Click Add.
  5. Select the parameter name in the Param Name field and type the value of the property See List of Parameters below for possible parameters.
  6. Edit the description of the parameter in the Description field.
  7. Click OK. The parameter you have specified is reflected in the Session Manager Parameters property editor. You may add additional parameters by clicking Add.
  8. Click OK.
  9. You can additionally specify the session persistence parameters for the persistence manager by clicking the Store Param value field in the Sun ONE AS pane of the web.xml property sheet.

Custom Session Manager

To specify a Custom Session Manager and its parameters:

  1. Click the Sun ONE AS pane of the web.xml property sheet
  2. Click the Persistence Type value field and select custom.
  3. Click the Manager Param value field and click the ellipsis (...) button to open the Session Manager Parameters property editor.
  4. Click Add.
  5. Select the parameter name in the Param Name field and type the value of the property See List of Parameters below for possible parameters. If you select the className parameter name, type the Java class name of the session manager.
  6. Edit the description of the parameter in the Description field.
  7. Click OK. The parameter you have specified is reflected in the Session Manager Parameters property editor. You may add additional parameters by clicking Add. Make sure that you specified the className parameter.
  8. Click OK.
  9. You can additionally specify the session persistence parameters for the persistence manager by clicking the Store Param value field in the Sun ONE AS pane of the web.xml property sheet.

List of Parameters

The following describes Session Manager parameters:

Property Name Value
className The Java class name of the implementation to use One of the possible values for this parameter is com.iplanet.ias.servlet.session.PersistentManager. When the PersistentManager is used, the persistent storage can be configured by specifying store-param name/value pairs
reapIntervalSeconds The number of seconds between checks for expired sessions.
maxSessions The maximum number of active sessions, or -1 for no limit.
sessionFilename The absolute or relative pathname of the file in which the session state is preserved between application restarts, if preserving the state is possible. A relative pathname is relative to the temporary directory for this web module.

See also
   Web Module Property Sheet: Sun ONE AS Tab
Specifying Session Persistence Parameters

Legal Notices