我已经配置我的Web.Config
文件作为后续的ASP.NET MVC 2项目:什么时候在ASP.NET MVC中调用Session_End()?
<sessionState mode="InProc" timeout="1"/>
而且加入Global.asax.cs
如下:
protected void Session_End(object sender, EventArgs e)
{
System.Diagnostics.Debug.WriteLine("Session_End");
}
protected void Session_Start(object sender, EventArgs e)
{
System.Diagnostics.Debug.WriteLine("Session_Start");
}
Session_Start()
当一个新的用户那张被称为网站。我预计Session_End()
会在空闲1分钟后被调用,但事实并非如此。我错过了什么吗?
有趣,我会想到这会叫它就在1分钟大关 – 2010-03-03 17:21:40