#when does a cart expire and is it synced between devices

1 messages · Page 1 of 1 (latest)

nimble ledge
#

when does a cart expire and is it stored on the users account so i can sync it between devices

thin rock
#

Hey Youssef, it is not and you'll need to implement it on your side 🙌

nimble ledge
#

and what about expiry date

thin rock
#

Same 👍

nimble ledge
#

as in it expires when the tab is closed or what sorry

#

so why the checkout url regenerates every 30 minutes then

thin rock
#

You’re talking about the Next.js starter ?

#

If you're talking about it,I don't want to get ahead of myself without having taken the time to read the code, so I don't know, I thought you were talking about the backend 🙌

dim dust
#

hi @nimble ledge - in Next.JS starter cookies are used to remember the cartId. So if you are erasing cookines, then you lost the id of the cart, but the cart id itself is stored in database forever.

nimble ledge
#

So the cart if i have its id in my database the cart never expires