From身份验证的User.Identity.IsAuthenticated为什么永远也false?

发布日期:2018-06-09 来源:财富国际在线 阅读:
From身份验证的User.Identity.IsAuthenticated为什么永远也false? 刘延瑞 2小时前 194 不是cookie没有响应回来的问题,无论怎么刷,就是不行,无语了,麻烦给看下
0 0
其他回答
你确定你SignIn了吗。。。 热心网民 1小时前 0条评论
0 0

In short, the User object is set earlier in the http://ASP.NET pipeline, long before the requested http://ASP.NET page's code is executed. Now, on thesubsequent visit, the http://ASP.NET runtime will see the forms authentication ticket and User.Identity.IsAuthenticated will be true, but not on this request.
73x财富国际

I really hope this makes sense.
73x财富国际

In any event, in the LoggedIn event handler there's no need to check if the user is authenticated - you already know they are! The LoggedIn event wouldn't fire otherwise. Also, you won't be able to get the username from User.Identity.Name. Instead, use LoginControlID.Username.73x财富国际

Happy Programming! 73x财富国际

热心网民 1小时前 0条评论
0 0

关于我们 联系我们招聘信息免责申明广告服务 网站地图 百度地图 TAG标签

Copyright@2018-2022 Cfgjzx.Com 财富国际在线 版权所有 All Rights Reserved   
财富国际提供:最新财富资讯、房产资讯、股票资讯、区块链、投资理财、保险导购、健康产品、公私募基金,易经等资讯及服务.