note 102352 added to function.setcookie
[email protected] ((at) (dot))
| Newsgroups | php.notes |
|---|---|
| Message-ID | <[email protected]> |
IE7 can have trouble with settings cookies that are embedded in an iframe. The problem lies with a W3C standard called Platform for Privacy Preferences or P3P for short.
To overcome, include the header:
header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"');
before setting the cookie.
With thanks to Adam Young @ http://adamyoung.net/IE-Blocking-iFrame-Cookies
----
Server IP: 69.147.83.197
Probable Submitter: 203.4.173.129
----
Manual Page -- http://www.php.net/manual/en/function.setcookie.php
Edit -- https://master.php.net/note/edit/102352
Del: integrated -- https://master.php.net/note/delete/102352/integrated
Del: useless -- https://master.php.net/note/delete/102352/useless
Del: bad code -- https://master.php.net/note/delete/102352/bad+code
Del: spam -- https://master.php.net/note/delete/102352/spam
Del: non-english -- https://master.php.net/note/delete/102352/non-english
Del: in docs -- https://master.php.net/note/delete/102352/in+docs
Del: other reasons-- https://master.php.net/note/delete/102352
Reject -- https://master.php.net/note/reject/102352
Search -- https://master.php.net/manage/user-notes.php