I use FormsAuthentication.RedirectFromLoginPage(userName.Trim(), false); to set the User.Identity.Name field that I reference later. When I execute this line, the User.Identity object does not update
I am using database with a list of username/passwords, and a simple web form that allows for users to enter their username/password.
I have cre开发者_开发百科ated a site in ASP.NET 3.5 & I have only 2 or 3 user login IDs who can login to the website.
I\'m trying to get forms authentication working for an mvc site. I have a custom database with a users table, and I would like to do my own password validation.
I am using Apache to authenticate users for Django, but I would like to do so without the popup form that Apache uses in its basic configuration.
Using forms authentication, is it possible to return a 404 if a user doesn\'t have access to content, rather than redirecting them somewhere?
I am experimenting with FormsAuthentication (using ASP.NET MVC2) and it is working fairly well. However, one case I can\'t work out how to deal with is validating the user identity on the server to e
I\'m trying to make a log-in log-off with Ajax supported. I made some logic in my controller to sign the user in and then return simple partial containing welcome message and log-Off ActionLink my Ac
Why HttpContext.Current.User.IsInRole(\"Customer\") returns false if the user is not logged in, I t开发者_开发技巧hink because user is considered anonymous is this case, Correct?
I an trying to setup Forms Based Authentication using ASPNetSQLMembershipProvider. In 2010 Beta 2, I was able to do this in classic mode, and it worked.