We have noticed that for each purchase made through our store, Shopify appends a "checkout_session_token__cn__*" cookie. The accumulation of these cookies eventually leads to a "Cookie Too Large" error. We can clear the cookies, but it just starts again until the error happens again.
It looks like the "checkout_session_token__cn__" cookies contain the history of purchases by that user. Even purchases that have been fully checked out.
We are using the Storefront API with the checkout url provided by the API.
I am hoping someone can point in the right direction on how to resolve this.
This can be simply a Shopify bug - https://community.shopify.com/c/hydrogen-headless-and-storefront/issue-with-excessive-cookies-leadin... There is already a topic for that.
Please, let me know if you need any assistance.
Dive into the world of Print-on-Demand and discover how it can transform your online busin...By Imogen Feb 19, 2024
Discover how to transform your online store into a delightful shopping destination. Learn ...By Ollie Feb 13, 2024