【发布时间】:2009-06-25 09:29:40
【问题描述】:
我问这个问题是出于好奇。
我在 global.asax 中注意到了这一点
void Session_End(object sender, EventArgs e)
{
// Code that runs when a session ends.
// Note: The Session_End event is raised only when the sessionstate mode
// is set to InProc in the Web.config file. If session mode is set to StateServer
// or SQLServer, the event is not raised.
}
我想了解当会话模式为 StateServer 或 SQLServer 时,为什么没有捕获/引发 Session_End 事件?
【问题讨论】: