Specifying a Session Manager
56 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
iPlanet Web Server 6.0 comes with these session managers for creating and
managing sessions:
•
IWSSessionManager -- the default session manager, which can use a database
or a file store for persistent sessions, and can run in single-process or
multi-process mode.
•
MMapSessionManager (Unix Only) -- a session manager for running the
server in multi-process mode. Does not support distributed sessions.
•
SimpleSessionManager -- a deprecated simple session manager. Does not
support distributed sessions.
•
JdbcSessionManager -- a deprecated session manager that stores session
information in a database using the JDBC API and that supports distributed
sessions.
Multi-process mode is supported only on Unix platforms. All multi-process mode
features of session managers are ignored on Windows NT.
iPlanet Web Server 6.0 also allows you to develop your own session managers and
load them into the server. The source code files for session manager classes are
provided as a starting point for you to define your own session managers if
desired. These Java files are in the directory
server_root
/plugins/servlets/iws-apis/sessions.
Specifying a Session Manager
By default iPlanet Web Server uses IWSSessionManager as the session manager for
servlets. You can change the session manager in any of the following ways:
• Edit the file
web-apps.xml in the directory server_id/config.
Add a
session-manager element within the web-app element for the servlet or
JSP as in the following example:
<session-manager
class=’com.iplanet.server.http.session.YourSesMgr’
<init-param>
<param-name>maxSessions</param-name>
<param-value>1000</param-value>
</init-param>
<init-param>
<param-name>timeOut</param-name>
<param-value>1800</param-value>
Kommentare zu diesen Handbüchern