Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross domain cookies - it must be possible [duplicate]

Possible Duplicate:
cross domain cookies

If i understand correctly, it is not possible to save cookies for different domains: only sub domains of the same root.

However, when looking on some sites, i see this happening.

The most obvious example is on youtube where there are cookies for youtube.com and google.com present.

How is this possible? How are they achieving this?

like image 419
Marty Wallace Avatar asked Dec 22 '25 16:12

Marty Wallace


1 Answers

If for example youtube.com includes an image from google.com, then google.com can place cookies "on the page". The individual cookie is not shared between domains.

See for example this answer for more information on how this can be achieved: Cross domain cookies

like image 96
Juha Palomäki Avatar answered Dec 24 '25 10:12

Juha Palomäki



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!