asp.net – 用户的会话状态服务器自定义超时

我想在Azure Cache中使用SessionStateServer Redis.我的问题是我想为我们的用户设置自定义超时,但它总是采用默认值.

如何为用户指定自定义超时值?

<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>

最佳答案 这里报告了同样的错误:
http://blogs.msdn.com/b/webdev/archive/2014/05/12/announcing-asp-net-session-state-provider-for-redis-preview-release.aspx#comments

它定于https://www.nuget.org/packages/Microsoft.Web.RedisSessionStateProvider/1.1.0

点赞