ASP.NET 表单身份验证和“无身份验证"子文件夹 [英] ASP.NET Forms Authentication and a "No Authentication" subfolder

查看:26
本文介绍了ASP.NET 表单身份验证和“无身份验证"子文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以禁用已通过表单身份验证的网站子文件夹中的所有身份验证?你是如何做到这一点的?

解决方案

是的,在包含以下内容的子文件夹中放置一个 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>

这篇关于ASP.NET 表单身份验证和“无身份验证"子文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆