MVC项目 ajax controller 里的方法,改方法HttpContext.Current.User.Identity.IsAuthenticated =false 为什么啊?
1条回答 默认 最新
- threenewbee 2016-12-02 15:54关注
HttpContext.Current.User.Identity.IsAuthenticated这个是只读的属性,你应该用FormsAuthentication.SetAuthCookie(用户名, false);来登录
解决 无用评论 打赏 举报