DEV Community


Discussion on: Shopping cart state saved in database or cookie for guests?

andmoredev profile image
Andres Moreno

What I have done is create a “session token” that I put in local storage. And that is what I use to save their items.
If they do not have an account I don’t expect them to have the enhanced cart experience for multiple devices.

wolfiton profile image
wolfiton Author

Thanks, @andresmoreno for sharing your experience and your solution to this problem.

Forem Open with the Forem app