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

posted @ 2005-05-16 16:30  Ready!  阅读(688)  评论(0)    收藏  举报