When you setcookie('id','111'...) does the browser store that cookie with additional information, like where it got from? How would that look like? I assume a website cannot access cookies set by facebook or twitter on somebody’s computer.
When you setcookie(‘id’,’111’…) does the browser store that cookie with additional information, like where
Share
Generally, this information is saved:
Cookies are generally identified by a combination of name, domain and path.
This means that a website can only access cookies that have been set on the same domain and path (which is good, as this prevents the sites you mentioned from reading cookies that have been set on other websites you have visited).
More information regarding the actual specification of how cookies RFC2965.