0
我为主页的某些结果创建了一个简单管理页面的引导程序网站。 一切工作正常FireFox和Chrome,但当我试图通过Internet Explorer登录时,每当我输入凭据并点击我的登录按钮,我不断重定向到登录页面。ASP.NET身份验证无法在Internet Explorer上工作
Web.config文件:
<!-- Authentication -->
<authentication mode="Forms">
<forms loginUrl="~/beheer/login.aspx" name=".ASPXFORMSAUTH" defaultUrl="~/beheer/default.aspx" path="beheer">
<credentials passwordFormat="Clear">
<!-- Login en wachtwoord -->
<user name="beheerder" password="beheerder"/>
</credentials>
</forms>
</authentication>
<authorization>
<allow users="*" />
<deny users="?" />
</authorization>
</system.web>
<!-- Toegangscontrole beheer overzicht -->
<location path="beheer">
<system.web>
<authorization>
<deny users="?" />
</authorization>
</system.web>
</location>
的Global.asax:
static void RegisterRoutes(RouteCollection routes) {
routes.MapPageRoute("beheer", "beheer", "~/beheer/default.aspx");
} /* RegisterRoutes */
Login.aspx.cs:
protected void LoginButton_Click(object sender, EventArgs e) {
String LoginGebruikersnaam = NameTextBox.Text;
String LoginPaswoord = PasswordTextBox.Text;
if (FormsAuthentication.Authenticate(LoginGebruikersnaam, LoginPaswoord)) {
FormsAuthentication.RedirectFromLoginPage(LoginGebruikersnaam, this.RememberMeCheckBox.Checked);
} else {
this.FoutmeldingPlaceHolder.Visible = true;
}
} /* LoginButton_Click */
是否有人知道这个问题的答案?
可能的重复:http://stackoverflow.com/questions/22053394/asp-net-forms-authentication-login-page-redirect-loop-for-ie-7-8-and-11-but-n。登录测试中的IE版本是否与现有问题相匹配? –
我在每个IE版本上都有它(Edge,10,9,8,7,5)。 – Niels
也许IE浏览器呈现您的网站在兼容模式? –