Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Bedienungsanleitung Seite 66

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 124
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 65
Deprecated Session Managers
66 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
Enabling SimpleSessionManager
You may want to enable SimpleSessionManager to change its default parameters.
You can also enable
SimpleSessionManager for a particular context if the server is
running in multi-process mode. To enable the iPlanet Web Server to use
SimpleSessionManager, do any of the following:
Use the Legacy Servlets>Configure Global Servlet Attributes page in the Server
Manager interface.
In the Session Manager field specify:
com.netscape.server.http.session.SimpleSessionManager
You can also specify parameters for the session manager in the Session
Manager Args field, for example:
maxSessions=20,timeOut=300,reapInterval=150
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.netscape.server.http.session.SimpleSessionManager
servlets.sessionmgr.initArgs=maxSessions=20,timeOut=300,reapInterval=150
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.netscape.server.http.session.SimpleSessionManager
context.global.sessionmgr.initArgs=maxSessions=20,timeOut=300,reapInterval=150
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.”
JdbcSessionManager
This is a persistent JDBC-based session manager that works in both single process
and multi-process modes. It can be used to store sessions in a custom database,
which can then be shared across multiple processes possibly running on different
machines.
Seitenansicht 65
1 2 ... 61 62 63 64 65 66 67 68 69 70 71 ... 123 124

Kommentare zu diesen Handbüchern

Keine Kommentare