简体   繁体   English

使用iframe在IE上写的第三方cookie,即使使用P3P也是如此

[英]third party cookies not written on IE with iframe, even with P3P

I designed the framing site: pishonworld.com, which frames wholesalecentral.com/pishonworld/store.cfm. 我设计了框架网站:pishonworld.com,其中包括wholesalecentral.com/pishonworld/store.cfm。

When customers use IE to shop on my site, their shopping cart gets cleared out as soon as they leave the cart. 当客户使用IE在我的网站上购物时,他们的购物车一下车就会被清除。 I have some really good things about P3P, so I added P3P to my index.php, but cart is still cleared out on IE. 我有一些关于P3P的非常好的东西,所以我将P3P添加到我的index.php中,但是仍然在IE上清除了购物车。

Does this P3P need to go to the framing page? 这个P3P是否需要进入框架页面? or the framed page? 还是加框的页面?

What am I doing wrong? 我究竟做错了什么? How can I fix this to work? 我怎样才能解决这个问题?

Thank you in advance for your help! 预先感谢您的帮助!

The following is my index.php. 以下是我的index.php。


<?php
    header('p3p: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Pishon World</title>
<link rel="stylesheet" href="style/style.css" type="text/css" media="screen" />
</head>

<body>
<div align="center" id="mailWrapper">
  <div id="pageContent">

  <?php include_once("template_header.php");?>

<table width="1100" border="0">
  <tr style="text-align: center">
    <td><iframe align="middle" name="iframe" id="iframe" frameborder="0" scrolling="auto" width="1100" height="650" src="welcome.php" seamless="seamless">Your browser is too old and it does not support pishonworld.com.
    <br />
    Please visit us at http://www.wholesalecentral.com/pishonworld/store.cfm  to place your order.</iframe></td>
  </tr>
</table>
  </div>

<?php include_once("template_footer.php");?>
</div>
</body>
</html>

Try 尝试

P3P: CP=”ALL ADM DEV PSAi COM OUR OTRo STP IND ONL”

See http://www.marco.org/2007/04/27/p3p-sucks-how-to-get-frame-cookies-unblocked-in-ie6 I have used http://www.marco.org/2007/04/27/p3p-sucks-how-to-get-frame-cookies-unblocked-in-ie6我用过

ALL ADM DEV PSAo COM OUR OTRo IND ONL

in the past and it works! 在过去,它的工作原理!

Also I would add this header to all your pages that are part of this process. 此外,我会将此标题添加到此过程中的所有页面中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM