Specifying Session Manager and its Parameters
A session manager automatically creates new session objects
whenever a new session starts.
|
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:
- StandardManager,
the default session manager.
- PersistentManager,
a provided session manager that uses a persistent data store
- custom session manager,
a third session manager which allows you to develop your own
session managers and load them into the server.
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:
-
Click the Sun ONE AS pane of the web.xml property sheet.
-
Click the Persistence Type value field
and select memory from the drop-down list.
-
Click the Manager Param value field
and click the ellipsis (...) button to open
the Session Manager Parameters property editor.
-
Click Add.
-
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.
-
Edit the description of the parameter in the Description field.
-
Click OK.
The parameter you have specified is reflected in
the Session Manager Parameters property editor.
You may add additional parameters by clicking Add.
-
Click OK.
PersistentManager
To specify the PersistentManager and its parameters:
-
Click the Sun ONE AS pane of the web.xml property sheet.
-
Click the Persistence Type value field
and select file from the drop-down list.
-
click the Manager Param value field
and click the ellipsis (...) button to open
the Session Manager Parameters property editor.
-
Click Add.
-
Select the parameter name in the Param Name field
and type the value of the property
See List of Parameters
below for possible parameters.
-
Edit the description of the parameter in the Description field.
-
Click OK.
The parameter you have specified is reflected in
the Session Manager Parameters property editor.
You may add additional parameters by clicking Add.
-
Click OK.
-
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:
-
Click the Sun ONE AS pane of the web.xml property sheet
-
Click the Persistence Type value field
and select custom.
-
Click the Manager Param value field
and click the ellipsis (...) button to open
the Session Manager Parameters property editor.
-
Click Add.
-
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.
-
Edit the description of the parameter in the Description field.
-
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.
-
Click OK.
-
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.
|
Legal Notices