Top "Forms-authentication" questions

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

Get the username in Forms authentication

I'm using Forms authentication. In Windows Authentication for get the user name of the PC i use: User.Identity.Name …

c# asp.net forms-authentication windows-authentication
Forms authentication: disable redirect to the login page

I have an application that uses ASP.NET Forms Authentication. For the most part, it's working great, but I'm trying …

asp.net forms-authentication
How to implement "Stay Logged In" when user login in to the web application

On most websites, when the user is about to provide the username and password to log into the system, there's …

jakarta-ee forms-authentication stay-logged-in
ASP.NET MVC 4 Web API Authentication with Membership Provider

I have an ASP.NET MVC 4 Project using the Web API. On the controller I have set the class to …

asp.net-mvc asp.net-membership forms-authentication asp.net-web-api fiddler
How to check if user is authorized inside Action

Usually I protect my Actions with [Authorize] but this time I need to check if a user is authorized inside …

asp.net-mvc forms-authentication authorization
Store/assign roles of authenticated users

I am upgrading a site to use MVC and I am looking for the best way to set up Authentication. …

asp.net asp.net-mvc authentication forms-authentication
User.IsInRole doesn't work

I have ASP.NET MVC 4 application. I use Simple Membership Provider allowing to tick remember me checkbox under login form. …

asp.net-mvc forms-authentication simplemembership .aspxauth
Asp.net forms authentication and multiple domains

I have two domains, domain1.com and domain2.com pointing at the same asp.net website which uses asp.net …

asp.net forms-authentication
ASP.NET Forms Auth Allowing access to specific file in subdirectory when all others should be denied

I am having problems allowing a specific Role access to a specific page in a subdirectory. My ASP.NET application …

asp.net web-config forms-authentication