Shopping Cart and Session

Hi,

I want to have store the contents of a user's shopping cart between
site visits. Anyone done this lately? I'm trying to determine the
best mechanism to use. I gather I could store it in a database, maybe
client variables (I haven't used those in years ?

Any thoughts appreciated.

If there is anything in Coldbox that may aid me I'd be open to using
that as well.

thx

One option is to store the cart id encrypted in a cookie that doesn’t expire soon. Check for the cookie. If it exists, decrypt and get their cart. If it doesn’t or if something goes wrong, give them a new cart.

  • Gabriel

I would suggest doing a db based cart and either a cookie that identifies them like gabriel mentioned.
Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Hi,

Thanks for the replies. I think I'm going to go the db route and see
how that plays out.

Appreciated..