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
Post a Comment