Skip to content

Cookie length will exceed browser maximumΒ #9

@binajmen

Description

@binajmen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions