asp.net 验证

为当前用户添加验证信息

System.Web.Security.FormsAuthentication.SetAuthCookie("administrator", true); 

获取验证信息

this.User.Identity.Name

this.User.Identity.IsAuthenticated //判断是否验证过了。

posted @ 2012-12-15 16:41  csdnbbs  阅读(126)  评论(0编辑  收藏  举报