Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to read 3rd party cookies

Tags:

php

cookies

Im familiar with reading cookies using php, but i was wandering if there is a way you can read a users browser cookies set by another 3rd party site (ie. not your own.)

Could somthing like this be written to view all of the users set cookies ?

print_r($_COOKIE);

like image 895
sam Avatar asked Jul 15 '13 20:07

sam


People also ask

Can I read a 3rd party cookie?

Availability: First party cookies are only accessible via the domain that created it. Third party cookies are accessible on any websites that load the third-party code.

Can I read cookies from other sites?

A cookie can only be read by the site that created it Any cookie on your computer can only be read by the website that created that cookie. Web browsers are very strict about enforcing this.

How do you track third party cookies?

How Third-Party Cookies work. Third-party cookies are — you guessed it — cookies that are tracked by websites other than the one you are currently visiting. The most common third-party entities are advertisers, marketers, and social media platforms.

What can third party cookies See?

Third-party cookies allow users to be tracked across sites, making for a richer picture of user behavior than first-party cookies could offer by only collecting user data when interacting with the owner's site.


1 Answers

No, it's impossible.

You can only read cookies that come from your own domain. The other cookies are not even sent to your server.

If you could read every cookies the user has, you would be able to obtain personal information such as their facebook password, connection to their bank etc.

It would be a serious breach of privacy, and as such, browsers do not send cookies except those from the same domain.

like image 57
Dany Caissy Avatar answered Nov 02 '22 00:11

Dany Caissy