1>
 <authentication mode="Forms">
  <forms loginUrl="logon.aspx"></forms>
 </authentication>

2>
<authorization>
        <deny users="?" />
</authorization>

3>login.aspx.cs验证成功后:
System.Web.Security.FormsAuthentication.SetAuthCookie(strID,false);

4> 退出:
System.Web.Security.FormsAuthentication.SignOut();

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2021-10-15
  • 2021-08-04
猜你喜欢
  • 2022-12-23
  • 2021-08-25
  • 2021-06-25
  • 2021-08-11
  • 2021-12-07
  • 2022-01-14
相关资源
相似解决方案