解决IFrame下无法写Cookie问题 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);