Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
试图实现数据保存在会话超时。我怎样才能捕获session timeout event.
session timeout event
您必须在中实现Session_End事件Global.asax,当调用 Abandon 方法或会话过期时,会在请求结束时引发 Session_End 事件。当 Timeout 属性指定的分钟数过去而没有为会话发出请求时,会话将过期。MSDN 参考
Session_End
Global.asax
publicvoid Session_OnEnd() { //Saving of data goes here. }