具体例码,这里是form格式的登陆
windows格式的在IIS中设置
webconfig:
<authentication mode="Forms">
<forms name="mylogin" loginUrl="login.aspx">
<credentials passwordFormat="HA1">
</credentials>
</forms>
</authentication>
<authorization>
<deny users="?"/>
</authorization>
<configuration>
<system.web>
<trace enabled="true" />
<authentication mode="Forms">
<forms name="asdasdasd" loginUrl="login.aspx" />
</authentication>
<authorization>
<deny users="?" />----不允许匿名
<allow users="pipp" />----允许pipp
<deny users="*" />----不允许所有用户
</authorization>
</system.web>
</configuration>
博客给出了在IIS中设置webconfig实现form格式登陆windows的具体例码,包含authentication和authorization相关配置,如设置认证模式、表单信息、凭证格式,以及对用户访问权限的控制,如允许或拒绝特定用户等。

1115

被折叠的 条评论
为什么被折叠?



