Forms Authentication: <location> authorization not bypasssing login page.
From: M Gallagher (mgallagher_at_arraysystems.com)
Date: 07/24/05
- Next message: CalSun: "Re: The server is not operational"
- Previous message: Dominick Baier [DevelopMentor]: "Re: Forms authorization cookie always set to expire in 2055?"
- Next in thread: Joe: "Re: Forms Authentication: <location> authorization not bypasssing login page."
- Reply: Joe: "Re: Forms Authentication: <location> authorization not bypasssing login page."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Sat, 23 Jul 2005 16:07:00 -0700
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>
- Next message: CalSun: "Re: The server is not operational"
- Previous message: Dominick Baier [DevelopMentor]: "Re: Forms authorization cookie always set to expire in 2055?"
- Next in thread: Joe: "Re: Forms Authentication: <location> authorization not bypasssing login page."
- Reply: Joe: "Re: Forms Authentication: <location> authorization not bypasssing login page."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|