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

时间:2013-08-20 23:45:09

标签: php iframe cookies shopping-cart p3p

我设计了框架网站:pishonworld.com,其中包括wholesalecentral.com/pishonworld/store.cfm。

当客户使用IE浏览器在我的网站上购物时,他们的购物车一旦离开购物车就会被清除。我有一些关于P3P的非常好的东西,所以我将P3P添加到我的index.php中,但是仍然在IE上清除了购物车。

这个P3P是否需要进入框架页面?或框架页?

我做错了什么?我该如何解决这个问题?

提前感谢您的帮助!

以下是我的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>

1 个答案:

答案 0 :(得分:0)

尝试

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

参见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

在过去,它的确有效!

另外,我会将此标题添加到此过程中的所有页面中。

相关问题