DEV Community

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

Collapse
themobiledev profile image
Chris McKay

This is how I do it. There's no identifying information as I don't capture any personal data at that point. Their shopping cart data is cleared if they make a purchase or if the item has been in their cart for more than 30 days (I run a software shop, so if they haven't purchased by then, I figure they're not going to purchase anything). Email and user data is captured when they buy a license, at which point the information is moved out of the shopping cart and into the license service.

Collapse
wolfiton profile image
wolfiton Author

Thanks, @chrismckay for sharing your experience and talking about in detail how you use this method to manage your software shop.

I really appreciated your thorough(detailed) response to my questions.