我在拥有登录表单的网站中有一个iframe。在IE8中,我无法登录该页面,因为IE阻止了我的cookie。我找到了一个php解决方案:<?php header(‘P3P:CP=”IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT”‘); ?>
但是我不知道在iframe或之前/之后放置此代码的位置?
答案 0 :(得分:0)
将其放入iframe
或.htaccess文件中。
另见:Cookie blocked/not saved in IFRAME in Internet Explorer