FormAuthenticationExample Sample ASP.NET Web Form application using FormAuthentication for StackOverflow answers. If you use ASP.NET MVC, you want to use OWIN Cookie Middleware component which is in my other project.