日期:2014-05-17 浏览次数:20430 次
HttpCookie hc = new HttpCookie("C", "VC");
hc.Expires = DateTime.Now.AddHours(2);
//hc.Domain = "www.163.com";
Response.Cookies.Add(hc);
Label1.Text = Request.Cookies.Count.ToString();
HttpCookie hc = new HttpCookie("D", "VD");
hc.Expires = DateTime.Now.AddHours(2);
hc.Domain = "www.163.com";
Response.Cookies.Add(hc);
Label1.Text = Request.Cookies.Count.ToString();