1
例的Iframe:http://goo.gl/25ecS 的index.php的iFrame餅乾阻止IE瀏覽器 - 替代方式
<?php
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
?>
<!DOCTYPE html>
<html>
<head>
<title>EXAMPLE</title>
</head>
<body>
<iframe id="foob" width="100%" height="550" frameborder="0" marginheight="0" marginwidth="0" scrolling="yes" onLoad="window.parent.scroll(0,0);" src="http://www.xxxxx.com/buildyourown/Results/Results_xsl.aspx?aff=&incdirect=1&boardType=&rooms=1&rating=2&r3c_ages=2%2C+2%2C+2%2C+2&r1a=2&r2c=0&r2i_ages=0%2C+0%2C+0%2C+0&r3i=0&airportto=LCA&r1i=0&r1c=0&r1i_ages=0%2C+0%2C+0%2C+0&_stage=search&locationset=&populardestinations=3100&r2a=2&r2c_ages=2%2C+2%2C+2%2C+2&r3c=0&locationto=3100&aclocationto=&flexibility=3&r1c_ages=2%2C+2%2C+2%2C+2&r3a=2&r3i_ages=0%2C+0%2C+0%2C+0&airportfrom=LON&airportfromfreetext=&r2i=0&spechotelname=&freetext=-+type+your+destination+-&numadults=2&numchildren=0&numinfants=0&_searchrandom=711211764-20399-68269&search_type=Flight_Hotel_Transfer&startdate_d=19&startdate_m=4&startdate_y=2013&enddate_d=26&enddate_m=4&enddate_y=2013&startdate=10+June+2013&enddate=17+June+2013&transport=transfer" /></iframe>
</body>
</html>
iframe是工作FF或Chrome,但互聯網expolerer封鎖的Cookie。我不知道如何解決這個問題。我把這個代碼(標題('P3P:CP =「IDC DSP COR ADM DEVI TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT'');)在我的頁面頂部,但仍然不起作用。當我點擊籃子購物,沒有任何籃子。
您是否在iframe網址中設置了這個設置,或者只有父級設置? –
另外,您是否可以控制IE瀏覽器(例如,是否安裝在公司環境中)?如果沒有,用戶可以選擇退出第三方Cookie。因此,傳遞該標題將不起作用。 –