note 27819 added to function.setcookie
| From: | mleer at sp dot nl | Date: | Thu, 19 Dec 2002 20:50:29 +0000 |
| Subject: | note 27819 added to function.setcookie | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41132@lists.php.net to get a copy of this message | ||
P3P is a good idea. But.
IE 6 features an inadequate definition of third party cookies.
If your site is hosted on server A and your PHP stuff is coming in a framesetting from server B your
setcookie-attempts will be blocked when default privacy settings are deployed. Your
secondparty-cookie will be regarded as a thirdparty-cookie.
So what you do is not read the P3P-Internet Explorer 6-manual at MS but send a header like
header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"');
before doing the setcookie-thing. This will enable your cookie to survive any IE-6 privacy settings.
You won't do this if you're working for some doubleclick institution, because if you do,
you... you...well... you are not a very nice person!
--
http://www.php.net/manual/en/function.setcookie.php
http://master.php.net/manage/user-notes.php?action=edit+27819
http://master.php.net/manage/user-notes.php?action=delete+27819
http://master.php.net/manage/user-notes.php?action=reject+27819