Global.asax中添加:
public override void Init()
{
this.PostAuthenticateRequest += (sender, e) =>
HttpContext.Current.SetSessionStateBehavior(SessionStateBehavior.Required);
base.Init();
}
上图:
转载于:https://www.cnblogs.com/SeNaiTes/p/9003752.html
相关资源:JAVA上百实例源码以及开源项目