HttpContext.Current.Response.AddHeader("P3P", "CP=CAO PSA OUR");
HttpContext.Current.Response.Cookies["homeid"].Value = val;
HttpContext.Current.Response.Cookies["homeid"].Expires = DateTime.Now.AddDays(1);
转载于:https://www.cnblogs.com/dashi/archive/2011/10/27/4034760.html