The login URL for ASP.NET applications (including MVC3) is managed in web.config in the forms authentication section:
<configuration> <system.web> <authentication mode="Forms"> <forms loginUrl="~/Home/Login" timeout="2880" /> </authentication> </system.web> </configuration>
The trick is that you need two different login URLs. ASP.NET has a great feature in which you can have a web.config file in every directory of your project, and as needed it will use the most specific settings that it can find, right up to the root web.config. So, in the folder where you have your administrative views ("Admin", I suppose), you should be able to create a second web.config that will only apply to these pages and below in the tree:
<configuration> <system.web> <authentication mode="Forms"> <forms loginUrl="~/Admin/Login" timeout="2880" /> </authentication> </system.web> </configuration>
source share