Controlling the session timeout for Rest services
John Rawls 270001AQGG email@example.com | | Tags:  commerce rawls rest wcs
0 Comments | 1,221 Visits
Rest calls go through channel different from your typical desktop/browser storefront where the normal Login Timeout does not necessarily apply. In the case that your Rest calls originate from a mobile device (phone, iPad, etc.) this channelId is typically -6. To specify a session timeout for this channel, add -6 to the ExpiryManagement element of the BusinessContextService in the <instance>.xml. The block would look like this after the change:
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.
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.
For more information see:
Changing web services session timeout
Mapping device-specific requests to a JSP file template