php - Setting a cookie from a third-party domain -


so basically, trying build simple tracker method of learning how trackers work. , stumbled upon first problem. scenario this:

  • domain a, loads js (tracker) domain b
  • domain b, hosts tracker , backend

user loads domain a, , js loaded successfully. set-cookie (name, value, path, expiration) request sent domain b user, receives (i checked it). however, doesn't set cookie in browser. tried same in same domain , works, problem they're different domains.

what best workaround this? using iframes, maybe? setting cookie js reading response server?

toss in http headers

p3p cp="noi cor nid cur our nor" 

p3p key, rest value

and you'll propably want brush on p3p http://www.w3.org/p3p/

or google "p3p"

in thread p3p dead ..but still work on ie. don't know chrome & ff stand on issue. any recommendation p3p policy editor?


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -