IIS使用ASP.NET State Service存储Session

好处:

1)使用WEB园,提高iis应用程序并发性能

2)当IIS重启时,用户Session不会丢失,提高用户体验。


1)启动系统ASP.NET State Service服务。


2)配置web.config

<system.web>
    <sessionState mode="StateServer" stateConnectionString="tcpip=127.0.0.1:42424" cookieless="false" timeout="300" />
</system.web>

3)修正代码;如可序列化。

 

相关文章:

  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-25
  • 2022-12-23
猜你喜欢
  • 2021-06-02
  • 2022-03-02
  • 2021-10-04
  • 2021-09-27
相关资源
相似解决方案