The session persistence (store) parameters specify how the sessions are stored in the Sun ONE Application Server. You open the Store Parameter property editor by selecting the Store Param property and its ellipsis (...) button from the Sun ONE AS pane of the web.xml property sheet.
Before you add parameters, you must specify a persistence manager for the web module. For more information on specifying the persistence manager, see Specifying Session Manager and its Parameters.
To add a session persistence parameter:
To edit a session persistence parameter:
To remove a session persistence parameter:
The following describes session persistence parameters:
Property Name | Value |
---|---|
className | The Java class name for the type of storage. You need to set this parameter only if the Persistence Type property is custom. One of the possible values for this parameter is com.iplanet.ias.servlet.session.JDBCStore. |
reapIntervalSeconds | The number of seconds between checks for expired sessions for those sessions that are currently swapped out. |
directory | The absolute or relative pathname of the directory into which individual session files are written. A relative path is relative to the temporary work directory for this web module. (only applicable to the PersistentManager session manager) |
jndiDatasourceName | The name of the JDBC datasource or connection pool representing the JDBC session store. (only applicable to the JDBCStore session manager) |
connectionTimeoutSeconds | The time, in seconds, to wait before timing out a JDBC connection. (only applicable to the JDBCStore session manager) |
sessionDataCol | The name of the database column, contained in the specified session table, that contains the serialized form of all session attributes for a swapped out session. The column type must accept a binary object (typically called a BLOB). (only applicable to the JDBCStore session manager) |
sessionIdCol | The name of the database column, contained in the specified session table, that contains the session identifier of the swapped out session. The column type must accept character string data of at least as many characters as are contained in session identifiers. (only applicable to the JDBCStore session manager) |
sessionLastAccessCol | The name of the database column, contained in the specified session table, that contains the lastAccessedTime property of this session. The column type must accept a Java long (64 bits). (only applicable to the JDBCStore session manager) |
sessionMaxInactiveCol | The name of the database column, contained in the specified session table, that contains the maxInactiveInterval property of this session. The column type must accept a Java integer (32 bits). (only applicable to the JDBCStore session manager) |
sessionTable | The name of the database table to be used for storing swapped out sessions. This table must contain, at least, the database columns that are configured by the other attributes of this element. (only applicable to the JDBCStore session manager) |
sessionValidCol | The name of the database column, contained in the specified session table, that contains a flag indicating whether this swapped out session is still valid or not. The column type must accept a single character. (only applicable to the JDBCStore session manager) |
See also | |
Web Module Property Sheet: Sun ONE AS Tab Specifying Session Manager and its Parameters |