Hi all I know this post is the same than other around but I can't get it to work the way I want, the thing is that the Login.aspx page have it in a folder not in the root of the directory, also the page that I want to redirect the user to is in the same folder, so far I got this in my web.config file
<authentication mode="Forms">
<forms name=".ASPXAUTH" loginUrl="~/Admin/LogIn.aspx" defaultUrl="~/Admin/Admin.aspx" protection="All" timeout="20" path="/">
</forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
<location path="~/Admin/Admin.aspx">
<system.web>
<authentication>
<forms name=".ASPXAUTH" loginUrl="~/Admin/LogIn.aspx" defaultUrl="~/Admin/Admin.aspx" />
</authentication>
<authorization>
<deny users="?"/>
</authorization>
</system.web>
</location>
All pages contained in the Admin folder want it to be protected, the administrator needs to authenticate first, so my question is what I am doing wrong? need to take the Login.aspx and the admin.aspx out of the admin folder?
Any help wou
View Complete Post