【问题标题】:third party cookies not written on IE with iframe, even with P3P第三方 cookie 不是用 iframe 写在 IE 上的,即使是 P3P
【发布时间】:2013-08-23 04:36:03
【问题描述】:

我设计了框架网站:pishonworld.com,该网站框架批发中心.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>

【问题讨论】:

  • P3P 标头应该转到将被加载到框架中的页面。看来你做错了。

标签: php iframe cookies shopping-cart p3p


【解决方案1】:

试试

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

过去,它有效!

我还会将此标题添加到属于此过程的所有页面。

【讨论】:

    猜你喜欢
    • 2011-06-23
    • 2016-08-28
    • 2011-08-29
    • 2010-10-07
    • 2012-08-06
    • 2013-10-15
    • 2011-02-03
    • 1970-01-01
    • 2011-12-15
    相关资源
    最近更新 更多