62,263
社区成员
发帖
与我相关
我的任务
分享
HttpCookie cookie = new HttpCookie("Info");
cookie.Values.Add("key", talg.ToString());
cookie.Expires = DateTime.Now.AddHours(1);
HttpContext.Current.Response.AppendCookie(cookie);
HttpContext.Current.Request.Cookies["Info"].Values["key"].ToString();