👋 Next.js Conf 2024: Come build, party, run, and connect with us! See all events

Insight into cookies used by Sanity.io and clarification on the purpose of the sanitySession cookie.

4 replies
Last updated: Mar 2, 2023
hey there, for german/eu law we need to soecifiy what every cookie does on a page. We fetch data from sanity on the fly and it seems that sanity stores some cookies in the frontend:• osano_consentmanager_uuid
• osano_consentmanager
• sanitySession
• _uetvid
Can someone give me some insights about what these cookies do?
Feb 28, 2023, 4:33 PM
Could you clarify where you’re seeing these cookies? I’m not seeing any of those. Edit: I am now seeing a
sanitySession
cookie after leaving the Studio open for a bit. The value looks like an auth token, but for me it doesn’t match up to my logged in user. I’ll see if I can find anything out.
Feb 28, 2023, 5:48 PM
Hi Christian. I found out from the team that a while back, some consent manager cookies were configured to
<http://sanity.io|sanity.io>
(rather than the intended target of
<http://www.sanity.io|www.sanity.io>
), so if you visited our website in that period, then you got these cookies. Depending on their expiry date, they’ll continue to show up for you on subdomains, but not for new users or once you clear them out. There is nothing being done with them on the API domains.

sanitySession
is your personal Sanity token.
Feb 28, 2023, 10:25 PM
Great, thats very good to know!
Mar 2, 2023, 10:36 AM
Many thanks for the quick reply, this makes sense
Mar 2, 2023, 10:37 AM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?