M
M Gallagher
I am trying to configure my forms authentication so a certain page is not
subject to a redirect to the login page. This seems like it should be a
simple thing to do with a <location> tag, but its just not working. Requets
to the page (public.aspx) specified in the <location> tag are still being
redirected to the login page. The login page is in a subdirectory of the
application root where web.config resides. Here is the code from the
web.config file. Anyone know what Im doing wrong and why I cant grant
access to that one page without hitting the login page?
<configuration>
<system.web>
<authentication mode="Forms">
<forms loginUrl="logon/logon.aspx" timeout="120"/>
</authentication>
<authorization>
<allow roles="MyUsers"/>
<deny users="*"/>
</authorization>
</system.web>
<location path="logon">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="public.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
subject to a redirect to the login page. This seems like it should be a
simple thing to do with a <location> tag, but its just not working. Requets
to the page (public.aspx) specified in the <location> tag are still being
redirected to the login page. The login page is in a subdirectory of the
application root where web.config resides. Here is the code from the
web.config file. Anyone know what Im doing wrong and why I cant grant
access to that one page without hitting the login page?
<configuration>
<system.web>
<authentication mode="Forms">
<forms loginUrl="logon/logon.aspx" timeout="120"/>
</authentication>
<authorization>
<allow roles="MyUsers"/>
<deny users="*"/>
</authorization>
</system.web>
<location path="logon">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
<location path="public.aspx">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>