验证:
1.windows安全验证
2.Forms验证 重点
3.PassPort验证
<authentication mode="Forms|windows|Passport">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
<authorization>
<allow users="*"/>
</authorization>
<authorization>
<deny users="testuser"/>
<allow users="*"/>
</authorization>
</authentication>
在system.web外允许访问:
<location path="default.aspx">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
顺序匹配 .net中使用的
深度匹配 交集
1.windows安全验证
2.Forms验证 重点
3.PassPort验证
<authentication mode="Forms|windows|Passport">
<forms loginUrl="~/Account/Login.aspx" timeout="2880" />
<authorization>
<allow users="*"/>
</authorization>
<authorization>
<deny users="testuser"/>
<allow users="*"/>
</authorization>
</authentication>
在system.web外允许访问:
<location path="default.aspx">
<system.web>
<authorization>
<allow users="?"/>
</authorization>
</system.web>
</location>
顺序匹配 .net中使用的
深度匹配 交集