1

Can third party cookies override first party cookies?

Let's say I have session id stored in the cookie "SESSIONID", and then my page loads dozen of scripts from other domains that set their third party cookies, can they override first party cookies?

user3075373
  • 44
  • 1
  • 4
  • 19
  • Have you tried it? Use the [browser console (dev tools)](//webmasters.stackexchange.com/q/8525) (hit `F12`) and look into the **Web Storage** tab (and the **Cookies** subtab). Cookies are identified by origin, among other things, so, normally, cookies of different domains are stored separately. – Sebastian Simon Dec 21 '22 at 11:05
  • I am sorry I have worded my question completely wrong... I wanted to ask whether third party cookies can set lots of cookies resulting in deleting the first party ones due to reached browser cookie limits. – user3075373 Dec 21 '22 at 11:28
  • [Edit] your question. – Sebastian Simon Dec 21 '22 at 11:37

1 Answers1

2

No. Cookies are restricted to the domain that set them.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335