Red Hat NETSCAPE ENTERPRISE SERVER 6.0 - NSAPI PROGRAMMER GUIDE Uživatelský manuál Strana 58

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 124
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 57
IWSSessionManager
58 iPlanet Web Server, Enterprise Edition Programmer’s Guide to Servlets • May 2001
IWSSessionManager
The IWSSessionManager is the default session manager.
IWSSessionManager works in both single process and multi-process mode. It can
be used for sharing session information across multiple processes possibly running
on different machines. The
MaxProcs directive in the magnus.conf file determines
whether the server is running in single process mode or multi-process mode. For
more information, see the NSAPI Programmer’s Guide for iPlanet Web Server.
For session persistence,
IWSSessionManager can use a database or a distributed
file system (DFS) path that is accessible from all servers in a server farm. Each
session is serialized to the database or distributed file system. You can also create
your own persistence mechanism.
If iPlanet Web Server is running in single-process mode, then by default, no session
persistence mode is defined and therefore sessions are not persistent.
If iPlanet Web Server is running in multi-process mode, sessions are persistent by
default. If a persistence mode is not defined,
IWSSessionManager uses a DFS.
Multi-process mode is supported only on Unix platforms. All multi-process mode
features of
IWSSessionManager are ignored on Windows NT.
Parameters for IWSSessionManager
IWSSessionManager takes the following parameters:
maxSessions - the maximum number of sessions maintained by the session
manager at any given time. The session manager refuses to create any more
new sessions if there are already
maxSessions number of sessions present at
that time. The default value is 1000.
timeOut - the amount of time in seconds after a session is accessed by the client
before the session manager destroys it. Those sessions that haven’t been
accessed for at least
timeOut seconds are destroyed by the reaper method. The
default value is 1800 (30 minutes).
If
session-timeout is specified in web.xml, it overrides this timeOut
parameter value. For details, see “session-timeout,” on page 15.
reapInterval - the amount of time in seconds that the SessionReaper thread
sleeps before calling the
reaper method again. The default value is 600 (10
minutes).
Zobrazit stránku 57
1 2 ... 53 54 55 56 57 58 59 60 61 62 63 ... 123 124

Komentáře k této Příručce

Žádné komentáře