Duwamish学习之构架篇身份验证authentication

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();

原文地址:https://www.cnblogs.com/silva/p/156488.html