ie 在对iframe里面的页面写Cookie的时候有一些安全限制,导致读取Cookie不成功. 只需要设置 P3P HTTP Header 通过在代码上加Response.AddHeader("P3P", "CP=CAO PSA OUR")或者在Window服务中将ASP.NET State Service 启动。 也可以在Application_BeginRequest中设置全局的p3p header protected void Application_BeginRequest(Object sender, EventArgs e) { HttpContext.Current.Response.AddHeader("p3p","CP=\"CAO PSA OUR\""); }
转载于:https://www.cnblogs.com/AaronWu/archive/2011/07/01/2095577.html