Re: Problem with setcookie and IE6.0.2800.1106
| From: | Jonathan Sharp | Date: | Thu, 17 Oct 2002 14:24:15 +0000 |
| Subject: | Re: Problem with setcookie and IE6.0.2800.1106 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120336@lists.php.net to get a copy of this message | ||
Ran into an issue with IE not setting cookies, the cause was that a 3rd party was loading our app in a frameset... solution was to start sending P3P headers...(another reason why i think M$ is just ugly...the 'keep it simple stupid' phrase comes to mind...)
header('P3P: policyref="http://' . $SERVER_NAME . '/w3c/p3policy.xml", CP="NON DSP STP OTPi NAV"');
see www.p3ptoolbox.org for the p3policy.xml file.
-js
John Nichel wrote:
Hi guys and gals. I'm having a problem with setting a cookie on IE 6. I'm running RedHat 7, Apache 1.3.26 and php 4.2.3. The cookie sets fine in all other browsers (IE5, Netscape 4 and up, Opera, Mozilla, etc.) but on IE 6, not even my session cookie sets. I've tried all of these.... setcookie ( "$name", "$cookie_data", $date, "/", "by-tor_v70", 0 ); setcookie ( "$name", "$cookie_data", $date, "/", "by-tor_v70" ); setcookie ( "$name", "$cookie_data", $date, "/" ); setcookie ( "$name", "$cookie_data", $date ); setcookie ( "$name", "$cookie_data" ); I've also replaced $date with time() and time()+3600. $date is set to the standard set forth on Netscape's site. Any ideas? thanks, John Nichel