復制代碼 代碼如下:
FormsAuthenticationTicket Ticket = new FormsAuthenticationTicket (1,"coffee",DateTime.Now, DateTime.Now.AddMinutes(20), false,UserRoles,"http://www.49028c.com/") ;
復制代碼 代碼如下:
string HashTicket = FormsAuthentication.Encrypt (Ticket) ;
復制代碼 代碼如下:
HttpCookie UserCookie = new HttpCookie(FormsAuthentication.FormsCookieName, HashTicket) ;
cookie.Domain = ".vevb.com";
復制代碼 代碼如下:
Response.Cookies.Add(UserCookie)
復制代碼 代碼如下:
Response.Redirect (Context.Request["ReturnUrl"]) ;
新聞熱點
疑難解答
圖片精選