Top "Forms-authentication" questions

Forms Authentication is a built-in and extensible system for authenticating users in an ASP.

ASP.NET MVC forces an AJAX request be redirected to the login page when the FormsLogin session is no longer active

I have some AJAX calls that render PartialViewResults via the jQuery.AJAX method. This works great, I get my views …

jquery asp.net-mvc ajax session forms-authentication
ASP Website does not seem to use machineKey in Web.Config for FormsAuthentication.Decrypt

I want to pass the authentication cookie from my ASP.Net MVC 5 (.Net 4.5.1, hosted locally on iisexpress, run from Visual …

c# asp.net wcf forms-authentication machinekey
FormsAuthentication object obsolete [using MVC5]

I'm using the following code in an MVC5 site: [HttpPost] [ValidateAntiForgeryToken] public ActionResult Login(LoginModel loginModel) { if (ModelState.IsValid) { var …

c# forms-authentication dotnetopenauth asp.net-mvc-5 owin
Execute ASP.NET Membership Login from codebehind in button click handler

I'm trying to seamlessly log in the user without prompting for credentials as part of a <asp:Wizard> …

asp.net asp.net-membership forms-authentication code-behind wizard
ASP.NET MVC - Dynamic Authorization

I am building a simple CMS in which roles are set dynamically in the admin panel. The existing way of …

asp.net-mvc content-management-system forms-authentication authorization roles
Prevent FormsAuthenticationModule of intercepting ASP.NET Web API responses

In ASP.NET the FormsAuthenticationModule intercepts any HTTP 401, and returns an HTTP 302 redirection to the login page. This is a …

asp.net forms-authentication asp.net-mvc-4 asp.net-web-api asp.net-authorization
Microsoft still seems to have a bug with Forms Authentication on WebFarm

It appears that there was a problem at some point that folks tracked down that caused authentication tickets to be …

asp.net forms-authentication web-farm
AJAX and FormsAuthentication, how prevent FormsAuthentication overrides HTTP 401?

In one application configured with FormsAuthentication, when a user access without the auth cookie or with an outdated one to …

asp.net ajax http jquery forms-authentication
Is Forms Authentication Ticket safe enough?

When a user logs in based on default Forms Authentication method, the server creates a cookie containing encrypted data (using …

asp.net forms-authentication machinekey formsauthenticationticket machine.config
ASP.NET MVC - FormsAuthentication.SetAuthCookie() and RolesIsUserInRole - wierd behavior

I have something like this: FormsAuthentication.SetAuthCookie(user, false); var tmp = Roles.IsUserInRole("administrator"); var _tmp = Roles.IsUserInRole(user, "administrator"); …

c# asp.net-mvc asp.net-mvc-3 forms-authentication roleprovider