IE里Iframe的Cookie问题解决办法总结

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\""); }
posted @ 2011-07-01 15:52  Aaron.Wu  阅读(292)  评论(0编辑  收藏  举报