对于多WEB的环境现在已经是必须的了,很难想像一台WEB服务器面对百万并发的响应,所以,我们需要多台WEB服务器集群合作,来缓解这种高并发,高吞吐的场景,而对于多WEB的场景又会有个问题出现,即session存储的问题,如一个用户登陆后,把一个状态信息存储到当前WEB服务器的session里,而你请求其它页面时,很可能就被路由到另一台服务器了,这时,session也就丢了,而对于这种情况,有人把redis这个存储中间件想了起来,对它进行了封装,就有了今天基于redis的session共享机制。
下面说下安装方法
1 使用nuget安装redis缓存 StackExchange.Redis
2 使用nuget安装RedisSession服务 RedisSessionStateProvider
3 从nuget添加RedisSession之后,它会在你的config文件中写入以下内容,主要是对session进行持久化设置的
<sessionState mode="Custom" customProvider="MySessionStateStore" timeout="">
<providers>
<!-- Either use 'connectionString' and provide all parameters as string OR use 'host','port','accessKey','ssl','connectionTimeoutInMilliseconds' and 'operationTimeoutInMilliseconds'. -->
<!-- 'throwOnError','retryTimeoutInMilliseconds','databaseId' and 'applicationName' can be used with both options. -->
<!--
<add name="MySessionStateStore"
host = "127.0.0.1" [String]
port = "" [number]
accessKey = "" [String]
ssl = "false" [true|false]
throwOnError = "true" [true|false]
retryTimeoutInMilliseconds = "" [number]
databaseId = "" [number]
applicationName = "" [String]
connectionTimeoutInMilliseconds = "" [number]
operationTimeoutInMilliseconds = "" [number]
connectionString = "<Valid StackExchange.Redis connection string>" [String]
loggingClassName = "<Assembly qualified class name that contains logging method specified below>" [String]
loggingMethodName = "<Logging method should be defined in loggingClass. It should be public, static, does not take any parameters and should have a return type of System.IO.TextWriter.>" [String]
/>
-->
<add name="MySessionStateStore" type="Microsoft.Web.Redis.RedisSessionStateProvider" host="127.0.0.1" accessKey="" ssl="false" />
</providers>
</sessionState>
4 下载是新版本的redis服务端,可以是windows版的,我用的是2.6.13,低版本的redis会出现Eval命令无法识别的问题
5 处理完成,可以测试你的session了,默认过期时间为1200秒
注意,上面sessionState里的timeout就是设置session超时的,它同样使用于redis的存储,下面是存在redis里的session,如图
aaarticlea/png;base64,iVBORw0KG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ft2lVTU+PxeOLxeCqVWlpaSiQSbre7oaEhz6wAAGzgkwEAgBKQ3yfj5NatW36/X6fTtbe3t7a2tra2DgwM0NwzFgAgCPhkAACgEJTikwEA5EJyn2wZAACAcBTqkwEAikMhfDK5D6AtWJ4AAAJ0SURBVGsAAFCSwCcDoNyBTwYAAEpAKT5ZNBp1u912u91qtZpMJr1er9VqXS7u5AAAUgGfDAAAFIL8PtnNmzdDoVAwGLxw4VIwHAsGI4FgJBAIJxJX+B6mBACQEPhkAACgBGT2yRYXFycnJyORSDweH3GPO5yeIbvbNuSy2YZn/UG+G/cDAKQCPhkAACgEmX0yj8czPz8/Pz8fi83ZnZ4jR44eOnS4pqZWpaqengkcPXpUUKdZN/En1MFN/AHIAJ8MAACUgMw+mdPpTCaTsVgsFAoNDrlsg64Bm9My4DCZh3zT51UqldAGyY+2xMPIAcgCPhkAACgEmX0yq9WaSCSi0WgwGLLahlWq6qqqqsrKysrKyhH3qEajMZvNBoPBarV6vV6ae8bSP24cmgyAVeCTAQCAEpDZJzOZTIlEIhKJ+P3nLQPOfovd1D9kNNmMff3T09MLCwvXr19fWVlJpVJ+v99gMPC1w36yOOFZ4zh3CUAG+GQAAKAQCuuT8b1m0Ol0iUQiHA7PzvpN5qE+06Cxz3bCdbyzt3N5efnatWurmmw1V7VazZ0r1xnJnKcpIcsAWAU+GQAAKAGZfbKOjo7Lly+HQiGfb8ZoshmMVr3B8kTT423dbUtLS36//+LFi3Nzcy6Xa3Fxke/WGNBkAIgGPhkAACgEma8nU6vV8Xg8FApNeX29Rqu+19KjN3f3mHp6dOl0OhAIJJPJiYmJiYkJhmGam5u5c4UmAyAP4JMBAIASkNkna25uTqVS0Wj03DmvTm/p0fV39Zg6u/o6O7vS6bTP50smkx6Px+PxMAzDd7syek2G/7sEIAv4ZAAAoBD4NNn/A8L1lML+rf9RAAAAAElFTkSuQmCC" alt="" />
感谢我VIP群的哥们提出这个问题,并对session超时的设置进行了解决。