NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator's Guide
Configuring NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator’s Guide—596210-006
3-91
Mixed-Mode Sessions
Considerations for Configuring Mixed-Mode Sessions
maxInactiveInterval
This variable is used to set the maximum time interval, in seconds, between client
requests before a session is invalidated. However, it should be noted that in the
current version of NSJSP, during a context start or restart this variable is always
overridden by the value specified in the session-timeout element in the
application’s deployment descriptor (web.xml). If the application’s deployment
descriptor does not explicitly specify a session-timeout element, the value is
taken from the <NSJSP_HOME>/conf/web.xml file as shown in Example 3-72.
The default value for session-timeout, which is expressed in minutes, is 30.
Table 3-21. Attribute List of the Manager Element.
Attribute Description
maxActiveSess
ions
Maximum number sessions that can be kept in-memory. If this
attribute is not specified, it is set to -1.
maxIdleBackup The time interval (in seconds) since the last access to a session
before it is eligible for being persisted to the session store, or -1 to
disable this feature. By default, this feature is disabled.
maxIdleSwap The time interval (in seconds) since the last access to a session
before it should be persisted to the session store, and removed from
the server's memory and written to the database, or -1 to disable this
feature. If this feature is enabled, the time interval specified must be
equal to or longer than the value specified for maxIdleBackup. By
default, this feature is disabled.
minIdleSwap The time interval (in seconds) since the last access to a session
before it will be eligible to be persisted to the session store, and then
removed from the server's memory and written to the database, or -1
for this swapping to be available at any time. If specified, this value
must be less than that specified by maxIdleSwap.
maxInactiveIn
terval
The maximum time interval, in seconds, between client requests
before a session is invalidated.
This attribute provides the initial value whenever a new session is
created, but the interval may be dynamically altered by a servlet via
the setMaxInactiveIntervalmethod of the HttpSession
object.
For more information, see maxInactiveInterval
on page 3-91.
Example 3-72. Default Configuration of session-timeout in the
<NSJSP_HOME>/conf/web.xml File
<session-config>
<session-timeout>30</session-timeout>
</session-config>










