Jdbcsessionmanager - Netscape ENTERPRISE SERVER 6.0 - PROGRAMMER GUIDE TO SERVLETS Programmer's Manual

Guide to servlets
Table of Contents

Advertisement

Edit the file
contexts.properties
apply to the default virtual server only.
Add a line specifying a value for
line specifying the parameters for the session manager:
context.global.sessionmgr=com.netscape.server.http.session.SimpleSe
ssionManager
context.global.sessionmgr.initArgs=maxSessions=20,timeOut=300,reapI
nterval=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.
The
NOTE
JDBCSessionManager
backward compatibility only. Use
JdbcStore
This sample JDBC session manager is not written, tested, or intended for
production use. It is provided so that you can customize its behavior to suit your
own needs.
JdbcSessionManager
Microsoft® SQL Server 7.0SP1. You must set up the ODBC source, database, and
table for the session manager to use. It is recommended that the Session ID column
be indexed for higher lookup performance.
Parameters
JdbcSessionManager
- the amount of time in seconds after a session is accessed by the client
timeOut
before the session manager destroys it. Those sessions that haven't been
accessed for at least
default value is 1800 (30 minutes).
in the directory server_id
context.
is deprecated and is included for
session persistence instead.
has been tested with a standard JDBC-ODBC driver against
takes the following parameters:
seconds are destroyed by the
timeOut
Deprecated Session Managers
/config
context_name
.sessionmgr
NESSessionManager
reaper
Chapter 6
Session Managers
. This will
and a
with
method. The
67

Advertisement

Table of Contents
loading

This manual is also suitable for:

Enterprise server 6.0

Table of Contents