Top "Forms-authentication" questions

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

How to get the current user in ASP.NET MVC

In a forms model, I used to get the current logged-in user by: Page.CurrentUser How do I get the …

c# .net asp.net-mvc iis forms-authentication
ASP.NET MVC - Set custom IIdentity or IPrincipal

I need to do something fairly simple: in my ASP.NET MVC application, I want to set a custom IIdentity / …

asp.net asp.net-mvc forms-authentication iprincipal iidentity
How to get the cookie value in asp.net website

I am creating a cookie and storing the value of username after succesfull login. How can I access the cookie …

c# asp.net cookies forms-authentication
FormsAuthentication.SignOut() does not log the user out

Smashed my head against this a bit too long. How do I prevent a user from browsing a site's pages …

asp.net forms-authentication
Why is <deny users="?" /> included in the following example?

The ? wildcard represents unauthenticated users while * represents all users, authenticated and unauthenticated. My book shows the following example of URL …

asp.net authentication asp.net-membership forms-authentication authorization
How to check user is "logged in"?

I am using form authentication with below method in my ASP.NET application FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, true); How do …

c# asp.net forms-authentication
ASP.NET Forms Authentication failed for the request. Reason: The ticket supplied has expired

I am getting this error many times in the event log and users are logged out. Event code: 4005 Event message: …

asp.net .net authentication forms-authentication
Forms Authentication understanding context.user.identity

Since documentation on this process is very vague and confusing (or old), I wanted to verify that I was doing …

c# asp.net forms-authentication
AuthenticateRequest event

Q 1. To my understanding FormsAuthenticationModule is subscribed to AuthenticateRequest event, and thus only after this event is fired, is FormsAuthenticationModule …

c# asp.net authentication forms-authentication httpapplication
Allow access for unathenticated users to specific page using ASP.Net Forms Authentication

I am using ASP.Net Forms Authentication. My Web.config looks like this. <authentication mode="Forms"> <forms …

asp.net forms-authentication