Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

alvallej's avatar

Getting all cookies (including third-party cookies) of a page

Hi!

I was wondering if it would be possible with any technology to obtain the list of cookies (including third-party cookies) that are installed in any browser (chrome, mozilla...) when you access any page.

The process will work like this:

1. Ask user for pages (Easy)
2. Get list of pages. (Easy)
3. Iterate over the list. (Easy)
4. Visit the page and obtain all cookies (including third-party cookies)
5. Write name of page in an excel and list all the cookies. (Easy)

If it's possible I would like the list of cookies of a page to be the same as chrome - dev-tools - application tab - cookies.

I've tried phantom.js but I couldn't get third-party cookies.

Thanks for your time!

0 likes
0 replies

Please or to participate in this conversation.