Let say if I have 2 folders:
Each folder I have to put the login.aspx ... now how do I control that if someone accessing through /admin then every page that located under admin folder will be redirected to /admin/login.aspx if the user trying to bypass the login?
Or similar thing if someone through /public then every page that located under public folder will be redirected to /public/login.aspx if the user trying to bypass the login?
At the moment I put below which works ok If you are accessing through /admin folder.
<forms loginUrl="~/Admin/Login.aspx" defaultUrl="~/Admin/default.aspx" />