MMapSessionManager (Unix Only)
64 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
You can also specify parameters for the session manager in the Session
Manager Args field, for example:
maxSessions=20,maxValueSize=1024,timeOut=300
• Edit the file servlets.properties in the directory server_id/config. This will
apply to the default virtual server only.
Add a line specifying a value for
servlets.sessionmgr and a line specifying
the parameters for the session manager:
servlets.sessionmgr=com.iplanet.server.http.session.MMapSessionManager
servlets.sessionmgr.initArgs=maxSessions=20,maxValueSize=1024,timeOut=300
• Edit the file contexts.properties in the directory server_id/config. This will
apply to the default virtual server only.
Add a line specifying a value for
context.context_name.sessionmgr and a
line specifying the parameters for the session manager:
context.global.sessionmgr=com.iplanet.server.http.session.MMapSessionManager
context.global.sessionmgr.initArgs=maxSessions=20,maxValueSize=1024,timeOut=300
You can change the global context or define a new context and assign specific
servlets to it. For more information, see Chapter 8, “Legacy Servlet and JSP
Configuration.”
This session manager can only store objects that implement
java.io.Serializable.
Deleting SessionData Version Files
If the server uses the MMapSessionManager session manager, it stores persistent
session information in the
SessionData directory. This cache has a Version file
containing a version number that the server uses to determine the structure of the
directories and files in the caches. You can clean out the caches by simply deleting
the version file.
When the server starts up, if it does not find the version file, it deletes the directory
structures for the corresponding caches and re-creates the version file. The next
time the server serves a servlet while using
MMapSessionManager session manager,
it recreates the session data cache.
You can delete the version file simply by deleting it from the
SessionData
directory as you would normally delete a file, or you can use the Java>Delete
Version Files page in the Server Manager to delete it. After deleting the version file,
be sure to restart the iPlanet Web Server to force it to clean up the appropriate
caches and to recreate the version file before the server serves any servlets.
Commentaires sur ces manuels