I read this question about how the third cookie is set, which I already know about:
There are three ways to do this:
Script ( application/javascript ) type mime (which is created on the server side), which can also set cookies. (along with script response).
img link <IMG href="http://www.advertiser.exmaple/add.cgi?source=example.com&user=1032354">
submit form in iframe (for safari)
Also, this answer explains it pretty well.
Question:
I clicked on the glasses element in example.com .
How does advertiser.com know that it should show me ads for glasses ? img / script / form submission to an iframe is executed (with query string value for glasses ) for each click on example.com? (I hardly believe)
(even if this is the case, it means that both advertiser.com and example.com must agree that item #447 is glasses .... they both share db? --- huh?)
How it works?
javascript cookies same-origin-policy cross-domain
Royi Namir Mar 16 '14 at 9:03 2014-03-16 09:03
source share