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

解决方法:web项目Global.asax.cs中加入如下代码

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


猜你喜欢

转载自blog.csdn.net/danding_ge/article/details/51838337