I use FormsAuthentication.RedirectFromLoginPage(userName.Trim(), false);to set the User.Identity.Name field, which I mention later. When I execute this line, the User.Identity object is not updated at all; It contains everything that was previously installed. All the documentation that I see on the Internet says that this should update my User.Identity object with the correct name, but I do not see this happening.
I set up the web configuration correctly with the following lines:
<authentication mode="Forms">
<forms name="formsauth" loginUrl="Login.aspx" protection="All" timeout="60">
</forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
I am relatively new to this, so any help is appreciated. Thank!
source
share