Having different login pages for different ASP.NET MVC 3 areas
问题 Can I have different login URL for different ASP .NET MVC3 areas? e.g. I would like to have different login page for Administrator and Data entry operators. I see a web.config in each area's view portion and I have tried doing: <authentication mode="Forms"> <forms loginUrl="~/Administration/Account/LogOn" timeout="2880" /> </authentication> but it does not play well. Cheers. 回答1: I'm not aware of .NET handling this for you but you could create a custom AuthorizationAttribute public class