开发者

Iframe Cookie Issue With Internet Explorer

I am developing an ASP.NET 4.0 web application in which I am trying to use an iframe to load a third party website:

  <iframe id="ifr1" src="http://newdomain.com?id=test&password=123"
        width="100%" height="600px">
    </iframe> 

The newdomain.com is trying to place cookies in the browser and IE dosent like that. I have no control over the application hosted on the newdomain.com. I have read a lot of articles which talk about having a P3P information added to the header of the page which hosts the iframe. So in my application's Global.asax I have the following code:

   prot开发者_运维百科ected void Application_BeginRequest(object sender, EventArgs e)
    {
      HttpContext.Current.Response.AddHeader("p3p", "CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\"");
    }

But this doesn't work and I am really confused now. Can anyone help me with this?


unfortunately this code actually needs to be in the code of the third party website not yours... I just had this issues but luckily had control over the iframed page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜