본문 바로가기

.NET/MVC.NET

HttpContext.User.Identity.IsAuthenticated false로 떨어질경우

폼인증을 제대로 설정했는지 한번 보자


<system.web>

    <authentication mode="Forms">

      <forms name="_gig_" loginUrl="/Account/Login"/>

    </authentication>

</system.web>


혹시 



 <system.webServer>

    <modules>

      <!--<remove name="FormsAuthentication" />-->

</modules>

</system.web



위에 모듈이 활성화 됐을경우 주석처리하자