Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookie length will exceed browser maximum #9

Open
binajmen opened this issue Jun 21, 2022 · 1 comment
Open

Cookie length will exceed browser maximum #9

binajmen opened this issue Jun 21, 2022 · 1 comment

Comments

@binajmen
Copy link

Hello :)

Sooo, I was inspired by your way of dealing with the cart in a cookie. I implemented something quite similar in my project. But I recently hit a cookie limit:

Error: Cookie length will exceed browser maximum. Length: 4262 bytes

There's a reason why the cookie is so "big": I'm storing an array of { id, quantity }. It seems cookies are not the right place when handling requests from a shop-addict.. 😅

What would be the right alternative ?

FYI, I wanted to test your project to test the same scenario, but I hit a different issue:

Screenshot 2022-06-21 at 09 01 02

@jacob-ebey
Copy link
Owner

Please check out the Hydrogen project for Remix ecomm best practices. I am not maintaining this and will probably never look at this repo again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants