IE11和.NET User.Identity.IsAuthenticated始终返回false [英] IE11 and the .NET User.Identity.IsAuthenticated always returns false

查看:400
本文介绍了IE11和.NET User.Identity.IsAuthenticated始终返回false的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IE11无法知道什么时候有人登录与窗体身份验证。

IE11 is unable to know when someone has logged in with Forms Authentication.

这.NET命令作品:

FormsAuthentication.SetAuthCookie(测试,FALSE);

This .NET command works in IE10 and in compatibility mode with IE11:
FormsAuthentication.SetAuthCookie("Test", false);

IE11返回false到User.Identity.IsAuthenticated。它存储鉴别饼干,但它不会从认证饼干加载User.Identity

IE11 returns false to User.Identity.IsAuthenticated. It does store the authentication cookies, but it does not load the User.Identity from the authentication cookies.

有谁知道,如果是IE11放弃对User.Identity或者如果支持我需要更新IIS识别IE11?

Does anyone know if IE11 is dropping support for User.Identity or if I need to update IIS to identify IE11?

更新:问题仅与.NET 4.0的网站。任何.NET 3.51或.NET 2.0网站的正常工作。

Update: The problem is only with .NET 4.0 sites. Any .NET 3.51 or .NET 2.0 sites work fine.

我的解决办法是在服务器上安装

http://www.microsoft.com/en-us/download /details.aspx?id=30653

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

推荐答案

我怀疑是ASP .NET V4如何处理饼干IE11这个问题涉及到。
您是否尝试设置表单元素无Cookie =UseCookies属性,在你的web.config?

I suspect that this problem is related to how ASP .NET v4 handles cookies with IE11. Have you tried setting cookieless="UseCookies" attribute in forms element in your web.config?

阅读此处了解更多信息:

Read here for more information:

<一个href=\"http://stackoverflow.com/questions/19188717/how-did-harmless-crawler-bypass-webforms-authentication-and-hijack-a-users-ses/\">http://gyorgybalassy.word$p$pss.com/2013/09/23/aspnet-40-forms-authentication-issues-with-ie11/

<一个href=\"http://stackoverflow.com/questions/19188717/how-did-harmless-crawler-bypass-webforms-authentication-and-hijack-a-users-ses/\">How做无害化履带旁的WebForms认证,并劫持用户会话?

这篇关于IE11和.NET User.Identity.IsAuthenticated始终返回false的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆