| PersistentSessionHome writes all passive sessions
to a database. The sessions are written by serializing
all the data (excluding the session manager) that is
associated with a session. This requires that
the session data and user associated with a session
are serializable. PersistentSessionHome
should be used by applications that want failover support
or that want to run in a clustered environment.
The session data is written to a table in the database
that is defined as (Informix):
CREATE TABLE PersistentSession
(
sessionKey VARCHAR(64) NOT NULL,
isNew CHAR(1) DEFAULT "1" NOT NULL,
timeCreated DECIMAL(19,0),
timeLastUsed DECIMAL(19,0),
timeExpires DECIMAL(19,0),
maxIdleTime DECIMAL(19,0),
maxNoUserIdleTime INTEGER,
userName VARCHAR(255),
data BYTE,
PRIMARY KEY(sessionKey)
)
The configuration settings for PersistentSessionHome:
DatabaseName: {String}
The database that will be accessed. This session is optional. If
not set then the default database is accessed.
DBTableName: {String}
The name of the table in the database where session data
will be written. The default table name is "PersistentSession".
See Also: StandardSessionManager version: $Revision: 1.2 $ author: Kyle Clark |