解决IFrame下无法写Cookie问题

来源:互联网 发布:java双色球代码 编辑:程序博客网 时间:2024/05/16 07:40
               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);