1 Replies - 7374 Views - Last Post: 22 September 2010 - 07:33 AM

#1 pudjam666  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 21-September 10

Problem reading a cookie from within a tracking pixel in IE

Posted 21 September 2010 - 09:39 PM

I wrote a simple pixel tracking program that works something like this

Step 1) tracker.com sets a cookie
Step 2) mysite.com displays <img src="tracker.com/tracking.php">. That image reads the cookie from Step 1 & does some processing.

Works great in Chrome, Firefox and Safari. But when tested in IE, the cookie can't be read in Step 2. It's as if the cookie doesn't exist -- but I know it does.

Any idea why IE pretends the cookie doesn't exist? I've tried messing with P3P headers, no luck.

Is This A Good Question/Topic? 0
  • +

Replies To: Problem reading a cookie from within a tracking pixel in IE

#2 skyhawk133  Icon User is offline

  • Head DIC Head
  • member icon

Reputation: 1868
  • View blog
  • Posts: 20,280
  • Joined: 17-March 01

Re: Problem reading a cookie from within a tracking pixel in IE

Posted 22 September 2010 - 07:33 AM

Hey pud, without seeing the code you're using to set the cookie or actually being able to inspect the cookie, I'm taking a shot in the dark here.

I believe the default security setting for IE is "Medium" and IE has a stricter cookie policy than most browsers:

Quote

Medium High: Blocks third-party cookies that do not have a compact privacy or those with a policy that uses your personal information without your consent. This setting also blocks first-party cookies that do not have a compact privacy policy or those with a policy that uses personal information without your consent. IE will recognize and read first-party cookies that do not have a compact privacy policy and cookies that were already on your computer before you installed IE 6 in the first-party context.

Medium: Blocks third-party cookies without a compact privacy policy or those with a policy that uses your personal information without your consent. This setting allows first-party cookies that have a compact privacy policy, which specifies that personally identifiable information is being used without your implicit consent, but it deletes these cookies when you close the browser. First-party cookies that do not have a compact privacy policy are only readable in the first-party context. IE can only read cookies that were already on your computer before you installed IE 6, but only in the first-party context.


I know this is from IE6, but don't think much has changed. Here's a blog post about adding p3p headers:

http://viralpatel.ne...ith-iframe.html

I think in general the P3P compact policy is probably where you need to look and if you're still having problems, let us know and we'll dig deeper.

I know you mentioned you've messed with the headers, but there are several blog posts and threads out there mentioning similar issues and I think the general consensus was those p3p headers just have to be perfect :/
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1