MVC Controllers and Forms Authentication
Posted by: Nikhil Kotharis Weblog,
on 19 Dec 2008 |
View original | Bookmarked: 0 time(s)
I've been re-implementing portions of my site (projects.nikhilk.net) using ASP.NET MVC. One of the things I had to implement was login/logout functionality.When you create a new ASP.NET MVC Application, you get a sample AccountController that has Login/Logout actions. This controller depends on an IFormsAuthentication implementation. There is a default implementation of this interface within the sample that works against the underlying System.Web.Security.FormsAuthentication APIs (SetAuthCookie and...