且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ASP.NET 表单身份验证和“无身份验证"子文件夹

更新时间:2022-10-24 18:30:24

是的,在包含以下内容的子文件夹中放置一个 web.config 文件:

<system.web><授权><allow users="*"/></授权></system.web></配置>

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

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

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