asp.net webForm登录授权

HttpCookie cookie;
cookie = FormsAuthentication.GetAuthCookie(W3Account, isRemberMe);
if (isRemberMe)
{
cookie.Expires = System.DateTime.Now.AddDays();
}
HttpContext.Current.Response.Cookies.Add(cookie);
string targetUrl;
targetUrl = FormsAuthentication.GetRedirectUrl(W3Account, isRemberMe);
HttpContext.Current.Response.Redirect(targetUrl);
上一篇:win10快捷键大全 win10常用快捷键


下一篇:webstorm快捷键大全-webstorm常用快捷键