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

html - Firefox flex bug applied to buttons? -

mysql - FireDac error 314 - but DLLs are in program directory -

python - build a suggestions list using fuzzywuzzy -