Is it possible to disable all authentication in a subfolder of a web site that is Forms Authenticated? How do you accomplish this?
2 Answers
Yes, place a web.config file on the subfolder with this content:
<configuration>
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</configuration>
4 Comments
BuddyJoe
Actually I noticed then I couldn't get to some connection strings in the web.config one level below this new one. Is that supposed to happen?
Sergio
It could have been cause by the <connectionStrings/> tag in the original post
danyim
Although the solution might seem obvious and simple, this helped me figure out a hair-puller. Thanks!
lhan
Is this different than adding a <location> tag with the same content inside the root web.config?
yes you can, you can use location tag in the web.config to configure folder level security.
1 Comment
BuddyJoe
I would probably use this method if I had many locations to specify differently and I wanted to manage them from a central file. good answer. +1