62,271
社区成员
发帖
与我相关
我的任务
分享
cookie = new HttpCookie("login");
cookie.Values.Add("username", txtUserName.Text);
cookie.Expires = DateTime.MaxValue;
Response.AppendCookie(cookie);
System.Web.Security.FormsAuthentication.SetAuthCookie(txtUserName.Text, false);