2016-06-20 3 views
0

메인 페이지의 일부 결과에 대한 간단한 관리 페이지로 부트 스트랩 웹 사이트를 만들었습니다. 모든 것이 FireFox 및 Chrome에서 올바르게 작동하지만 Internet Explorer를 통해 로그인하려고 할 때마다 자격 증명을 입력하고 로그인 버튼을 클릭 할 때마다 계속 로그인 페이지로 리디렉션됩니다.Internet Explorer에서 ASP.NET 인증이 작동하지 않습니다.

의 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 */ 

사람이 답을 알고 있습니까?

+0

가능한 복제본 : http://stackoverflow.com/questions/22053394/asp-net-forms-authentication-login-page-redirect-loop-for-ie-7-8-and-11-but-n. 로그인 테스트에서 IE 버전이 기존 질문과 일치합니까? –

+0

모든 IE 버전 (Edge, 10,9,8,7,5)에 있습니다. – Niels

+0

IE가 호환 모드로 웹 사이트를 렌더링 할 수 있습니까? –

답변

0

해결책 : 로그인 페이지를 웹 사이트의 루트로 이동해야했습니다.

관련 문제