这样说对吧:
Session_Start() 在新浏览器打开网站时执行
Session_End() timeout设置时间到,或Session.Abadon()时执行但我现在遇到的问题是,点个linkbutton也会执行这两个方法
请问有可能在哪里出的问题
Session_Start() 在新浏览器打开网站时执行
Session_End() timeout设置时间到,或Session.Abadon()时执行但我现在遇到的问题是,点个linkbutton也会执行这两个方法
请问有可能在哪里出的问题
ASP.NET provides two events that help you manage user sessions. The Session_OnStart event is raised when a new session starts, and the Session_OnEnd event is raised when a session is abandoned or expires. Session events are specified in the Global.asax file for an ASP.NET application. The Session_OnEnd event is not supported if the session Mode property is set to a value other than InProc, which is the default mode.
Session_Start() 在新浏览器打开网站时执行
Session_End() timeout设置时间到,或Session.Abadon()时执行 但我现在遇到的问题是,点个linkbutton也会执行这两个方法
请问有可能在哪里出的问题
---
你的连接打开了一个新的页面,这样就相当于与WEB应用程序建立了一个新的会话SESSION
如果你在跳转的时候是在同一个页上完成的,那么是同一个SESSION