abp项目中无法使用HttpContext.Current.Session[""]的问题

web项目Global.asax.cs中加入如下代码

public override void Init()
{
this.PostAuthenticateRequest += (sender, e) => HttpContext.Current.SetSessionStateBehavior(SessionStateBehavior.Required);
base.Init();
}

posted on 2018-10-25 13:41  听哥哥的话  阅读(160)  评论(0编辑  收藏  举报

导航