What is a third party cookie? [closed]

拈花ヽ惹草 提交于 2021-02-20 04:35:32

问题


What is a third party cookie and how is it used in Facebook connect feature?


回答1:


A third-party cookie is a cookie from domain A, being set in domain B (while visitor is in domain B).

as you may know, a cookie is a file that is set on a per-domain basis only, and cannot be shared across different domains, so, how can it be that domain A has set a cookie while being in domain B?
these third-party cookies are set while retrieving components from other domains than the current one being viewed, and the cookies are set via HTTP response headers Set-Cookie.

HTTP/1.1 200 OK
Content-type: text/html
Set-Cookie: name=value

(content of page)


More information:

What are third-party cookies

Third party cookies

Setting a cookie



来源:https://stackoverflow.com/questions/2051209/what-is-a-third-party-cookie

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!