Session state server custom timeouts for users

3.6k Views Asked by At

I want to use a SessionStateServer Redis in Azure Cache. My problem is I want to set a custom timeouts for our users but it always takes the default value.

How do I specify custom timeout values for our users ?

<sessionState mode="Custom" customProvider="MySessionStateStore" timeout="20">
     <providers>
       <add type="Microsoft.Web.Redis.RedisSessionStateProvider" name="MySessionStateStore" host="host" port="6380" accessKey="pass" ssl="true" throwOnError="true" retryTimeoutInMilliseconds="0" databaseId="0" applicationName="xxxDev" connectionTimeoutInMilliseconds="5000" operationTimeoutInMilliseconds="5000" />
     </providers>
   </sessionState>

1

There are 1 best solutions below