I created a new area “admin”, add following code to web.config in the admin area.
<authentication mode="Forms">
<forms loginUrl="~/admin/login" timeout="2880" />
</authentication>
if I go to admin page without logging in, I still get redirected to ~/account/login page. seems like the web.config in admin area didnt overwrite the web.config file in the root folder. not sure whats wrong, please help me out.
web.configin area folder can not specify runtime behavior. Its only function is to define some options pertaining to view compilation.