Multiple login pages with ASP.NET MVC

added by onester
3/20/2012 2:24:03 AM

5 Kicks, 395 Views

It might be nice to have several different login forms for different types of users. For example for Admins, Affiliates, Customers etc. This causes a problem because the Forms Authentication bits assume there will be a single login page for the whole application and it’s only possible to set a single loginUrl in the web.config to redirect users requesting pages which require authentication.