Hi Gino,

We do store shopping carts using serialization/json/xml to files and restore 
them when the user is back. We just need an item id and quantity.

We store it :

a) in a file using a uuid (saved in a cookie for non logged in users)

b) in a file using the customer profile for logged in users

That way, it’s easy to set up persistence duration by deleting old files.

Jérémy

Le 25 juil. 2019 à 19:34, Jesse Tayler via Webobjects-dev 
<[email protected]<mailto:[email protected]>> a écrit 
:

I would definitely suggest making the cart entries part of your persistent 
model and not use session variables for that.

On Jul 25, 2019, at 1:32 PM, Gino Pacitti via Webobjects-dev 
<[email protected]<mailto:[email protected]>> wrote:

Hi all
Anyone had any experience with serialising either a shopping cart or perhaps a 
session to persist for 24 hrs.

I’m trying to create an abandoned cart process that will take someone back to 
the checkout and continue even if session has expired...

Gino

Follow: https://instagram.com/mybuddiadventure
Like: https://facebook.com/mybuddi.co
Learn: https://mybuddi.co/about

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      
([email protected]<mailto:[email protected]>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com

This email sent to [email protected]<mailto:[email protected]>

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      
([email protected]<mailto:[email protected]>)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/jeremy.deroyer%40ingencys.net

This email sent to 
[email protected]<mailto:[email protected]>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to