2

IE11 无法知道某人何时使用表单身份验证登录。

此 .NET 命令在 IE10 和与 IE11 的兼容模式下工作:
FormsAuthentication.SetAuthCookie("Test", false);

IE11 向 User.Identity.IsAuthenticated 返回 false。它确实存储了身份验证 cookie,但它不会从身份验证 cookie 中加载 User.Identity。

有谁知道 IE11 是否正在放弃对 User.Identity 的支持,或者我是否需要更新 IIS 来识别 IE11?

更新:问题仅出在 .NET 4.0 站点上。任何 .NET 3.51 或 .NET 2.0 站点都可以正常工作。

我的解决方案是在服务器http://www.microsoft.com/en-us/download/details.aspx?id=30653上安装 .NET 4.5

4

2 回答 2

3

我怀疑这个问题与 ASP .NET v4 如何使用 IE11 处理 cookie 有关。您是否尝试在 web.config 的表单元素中设置 cookieless="UseCookies" 属性?

阅读此处了解更多信息:

http://gyorgybalassy.wordpress.com/2013/09/23/aspnet-40-forms-authentication-issues-with-ie11/

无害爬虫如何绕过 WebForms 身份验证,并劫持用户的会话?

于 2013-10-24T14:39:53.580 回答
1

Found the solution based on this question "Internet Explorer 11 does not authenticates on some of the sites"
http://answers.microsoft.com/en-us/ie/forum/ie11_pr-windows8_1_pr/internet-explorer-11-does-not-authenticates-on/47382440-71e5-4a66-ab41-1c070abbd3e5

While the exact solution did not work for me, it got me in the right direction. That is to look at .NET on the server. It seems that there are a couple of .NET updates that are keeping up with IE11.

My solution was to install .NET 4.5 on the server
http://www.microsoft.com/en-us/download/details.aspx?id=30653

于 2013-10-22T13:47:02.537 回答