views:

38

answers:

1

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

+1  A: 

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

vsync