Wednesday, 22 October 2014

Web Services Session Time out Settings - Websphere commerce

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

To change the active time period, update the configuration file.

 workspace_dir/WC/xml/config/wc-server.xml
  1. <ExpiryManagement
     ExpiryMgmtChannelId="-4"
     InactivityTimeout="15"
     Threshold="15"
     enable="true"
    />
    where
    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 WebSphere Commerce configuration file relates to both Management Center and Sales Center. Therefore, the users of these tools are bound to the same timeout duration and cannot be separated. That is, you cannot set a timeout duration for Management Center that differs from Sales Center.
Reference

No comments:

Post a Comment