解决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);
原文地址:https://www.cnblogs.com/dashi/p/4034760.html