Session 丢失解决办法

1.web.config
中加入
<sessionState mode="StateServer" cookieless="false" timeout="40" stateConnectionString="tcpip=127.0.0.1:42424"></sessionState>
2.把计算机的服务 asp.net 状态 这个启动
3.代码页面上的引用using System.Web.SessionState

搞定。

原文地址:https://www.cnblogs.com/guola/p/1131954.html