User.Identity.IsAuthenticated always False

After many hours and trying every example on the web, I finally found out why User.Identity.IsAuthenticated was always False. This was in the web.config:

<modules>
 <remove name="FormsAuthentication"/>
</modules>

Remove the “remove name” line and User.Identity.IsAuthenticated will finally be True

 

     

Leave a Reply