身份验证方式
windows passport form none
授权
allow 允许
deny 拒绝
特殊符号 *代表所有用户 ?代表匿名用户
跳转配置
<system.web>
<authorization>
<forms name = "Go" loginUrl = "Login.html" timeout = "20"></forms>
</authorization>
</system.web>
单个页面配置
<system.web>
<authorization>
<deny users="*">
</authorization>
</system.web>
增加票证 命名控件System.Web.Security
FormsAuthentiation.SetAuthCookie(User.name,false);
FormsAuthentication.RedirectFromLoginPage("admin",false);
第二个参数是不是长期有效 bool类型
删除票证
FormsAuthentiation.signgo() 删除票证

相关文章:

  • 2021-12-23
  • 2021-08-25
  • 2021-11-29
  • 2021-10-13
  • 2021-08-25
  • 2021-06-26
  • 2022-01-08
  • 2021-12-23
猜你喜欢
  • 2022-01-14
  • 2021-05-14
  • 2021-12-23
  • 2021-11-28
  • 2021-12-23
  • 2021-12-23
  • 2021-12-23
  • 2021-12-23
相关资源
相似解决方案