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\"");

}

 

 

参考:

http://blog.sina.com.cn/s/blog_4dd475390100lyin.html 

 

posted on 2011-06-30 14:13  蔡春升  阅读(379)  评论(0编辑  收藏  举报