Changing web services session timeout

Web services sessions, including Management Center, remain active for a specific time period. The session uses a leasing concept and is stored in the HCL Commerce configuration file. When the lease expires, the user is logged off the system. To change the active time period, update the configuration file.

Procedure

  1. Open the HCL Commerce configuration file.
  2. Change the lease time by updating the InactivityTimeout, Threshold and ExpiryMgmtChannelId parameters in the following code snippet:
    <ExpiryManagement
    	ExpiryMgmtChannelId="-4"
    	InactivityTimeout="15"
    	Threshold="15"
    	enable="true"
    />
    Where
    ExpiryMgmtChannelId
    Refers to the session type. -1 refers to desktop web channel requests and REST-based requests, -4 refers to management center and sales center requests, and -6 refers to mobile device requests.
    InactivityTimeout
    The lease time of the session in minutes. The session remains active within this time. In the sample configuration, for example, the lease time is 15 minutes.
    Threshold
    The allowable time in minutes to renew the lease. If a request comes in within this threshold time and after the lease time, the lease on the activity is renewed. In the sample configuration, for example, the threshold time is 15 minutes. Therefore, the activity remains active for 30 (15 + 15) minutes.

    The InactivityTimeout parameter in the HCL Commerce configuration file relates to Management Center. Therefore, the users of these tools are bound to the same timeout duration and cannot be separated.

  3. If you are using REST services, you can work with sessions to change timeouts for REST services, and to ensure that REST requests are made to the proper node, either with session affinity or cache replication.