Enabling session persistence to a file

Session persistence is enabled in a server or environment file.
Before starting this task, create a directory on the file system that will be used to store persisted session information. If a server cluster is used, the directory must be accessible by all nodes in the cluster.
To enable session persistence to a file:
  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. In the Persistence Directory field, enter the name of the directory that will be used to store persisted session information.
  6. Configure the other session settings as required.
Session information will now be stored in the persistence directory when a session timeout occurs. The session ID is used as the file name.
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.