Enabling session persistence to a database

Session persistence is enabled in a server or environment file. You must also create the session database table to store session information.
To enable session persistence to a database:
  1. Open the server or environment file to which you want to enable session persistence. The file opens in the editor window.
  2. In the Overview tab, click the Clustering/Session subtab.
  3. In the Session Timeout field, enter the amount of time to store persisted sessions, in minutes.
  4. Click the Persistent Session check box.
  5. Ensure the Persistence Directory field is cleared.
  6. In the connections or environment file, click the Data Source Connections tab.
  7. Add and configure the SessionDatabase data source.
  8. Create the Session table using the SessionDatabase data source, using the Data Load Tool or the Database Schema Tool.
  9. Configure the other session settings as required.
Session information will now be stored in the database when a session timeout occurs.
The amount of time after which the session information is removed from memory (and persisted if session persistence is used) is specified in the server or environment file, defined by the Session Timeout property. The period after which the data is removed from storage is set in NexJ Admin Console, defined by the Persistent Session Timeout property. This property fires off a batch job that cleans up persisted data, and is found in the Session Administration section of the System tab. By default, the Persistent Session Timeout is set to 60 minutes. For more information, see the NexJ CRM Administrator Guide.
Important: The Persistent Session Timeout property must be set to a larger value than the Session Timeout property to avoid potential race conditions which may lead to unpredictable and unexpected behaviour.