BuddyJoe
BuddyJoe

Reputation: 71161

ASP.NET Forms Authentication and a "No Authentication" subfolder

Is it possible to disable all authentication in a subfolder of a web site that is Forms Authenticated? How do you accomplish this?

Upvotes: 7

Views: 1916

Answers (2)

Sergio
Sergio

Reputation: 8269

Yes, place a web.config file on the subfolder with this content:

<configuration>
    <system.web>
      <authorization>
        <allow users="*"/>
      </authorization>
    </system.web>
</configuration>

Upvotes: 7

Prashant Lakhlani
Prashant Lakhlani

Reputation: 5806

yes you can, you can use location tag in the web.config to configure folder level security.

Upvotes: 4

Related Questions