asp.net mvc 3 - Login Page not showing for unauthenticated user (MVC) -


i'm trying redirect users login page if they're aren't logged in. using areas in mvc, have admin area holds login view.

in root web config set authentication mode forms , url point login.cshtml in admin area. browser show default aunthorised page, instead of redirecting login page.

root web config

<system.web>    <authentication mode="forms">       <forms loginurl="~/areas/admin/views/account/login" />     </authentication>  </system.web> 


Comments

Popular posts from this blog

angular ui router - 10 digest iterations reached in angularjs when using $state.go -

symfony - InvalidConfigurationException in SecurityExtension.php line 429: No authentication listener registered for firewall "secured_area" -

javascript - Can Piwik report referrer in real time? -