neoform Posted March 18, 2008 Share Posted March 18, 2008 I have a 1x1 pixel that gets loaded on a different site (for tracking reasons). The pixel is loaded through php, which creates a cookie. The cookie gets created and works with FF1 and FF2, but does not get created in IE6. $cookie_made = setcookie('tc', base64_encode($code), time() + (60 * 60 * 24 * 90), SITE_RELATIVE_PATH, $domain, false, false); Any ideas as to why this cookie isn't being made in IE? Link to comment https://forums.phpfreaks.com/topic/96766-pixel-tracking-cookies-ie6-problem/ Share on other sites More sharing options...
BlueSkyIS Posted March 18, 2008 Share Posted March 18, 2008 is SITE_RELATIVE_PATH defined? Link to comment https://forums.phpfreaks.com/topic/96766-pixel-tracking-cookies-ie6-problem/#findComment-495194 Share on other sites More sharing options...
roopurt18 Posted March 18, 2008 Share Posted March 18, 2008 It sounds like the sites are on different domains so the cookie you are trying to create is considered third party. On most IE security settings it will reject third party cookies automatically. To test if this is the case go into your IE -> Tools -> Internet Options -> Security -> Trusted Sites and click the Sites... button. Add the domain of the site that is trying to add the cookie to the list of trusted sites and then see if the cookie is created. If the cookie is created then that is the problem. However you can't get all your users to do this so to get around it you must provide a P3P (Peer Privacy Policy). A little bit of Google hunting and you should find more on what a P3P is and a free tool for creating one. Then you use a call to header() so that the P3P is sent with every page request and you should be good to go. Link to comment https://forums.phpfreaks.com/topic/96766-pixel-tracking-cookies-ie6-problem/#findComment-495198 Share on other sites More sharing options...
neoform Posted March 18, 2008 Author Share Posted March 18, 2008 This fixed it. Stupid IE. header('P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"'); Link to comment https://forums.phpfreaks.com/topic/96766-pixel-tracking-cookies-ie6-problem/#findComment-495202 Share on other sites More sharing options...
BlueSkyIS Posted March 18, 2008 Share Posted March 18, 2008 what in the heck is that? ??? Link to comment https://forums.phpfreaks.com/topic/96766-pixel-tracking-cookies-ie6-problem/#findComment-495234 Share on other sites More sharing options...
neoform Posted March 18, 2008 Author Share Posted March 18, 2008 It's like roopurt18 said, it's a P3P problem. I discovered it moments after I posted this thread.. IE6 requires some ridiculous header to be sent if the cookies are being created by a 3rd party domain. Link to comment https://forums.phpfreaks.com/topic/96766-pixel-tracking-cookies-ie6-problem/#findComment-495240 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.