Session Lifetime of a Cart & Whishlist

How long are products saved in a Users cart? If they log out and log back in tomorrow, will their products still be in the cart?

I believe the cart is kept forever. I have abandoned user carts, from registered users. from 2011 to date.

Carts are stored server-side.

You can delete them using the Customers > Abandoned / Live Carts form - but it has no pagination in v3.

Carts are based on life of the user's session. Carts should be cleared in 14 days. But that doesn't mean that a user is guaranteed to see their cart if their session has been invalidated or cleared and restarted (I.e. mobile device flushing cookies).

V 3.0.6

My Registered Customers have cart data that never expires (Wish list and cart). Unregistered Customer's carts only seem to last for 30 days; my oldest cart for an Unregistered Customer right now is exactly 1 month old and there are none older than that. My oldest Registered Customer cart is from 2011, it contains Wish List items and Cart contents. If I “act on behalf of” the customer, the cart and wish list contents are there in the store.

Yep, difference between registered user and anonymous.

sorry to bump this thread but is it possible to change the duration when the cart would be cleared? Where do I find it? Im using 4.2.4

Please try to change this value in the config.php file:



define('SESSIONS_STORAGE_ALIVE_TIME', SECONDS_IN_DAY * 7 * 2); // 2 weeks

[quote name='eComLabs' timestamp='1435918466' post='221492']

Please try to change this value in the config.php file:



define('SESSIONS_STORAGE_ALIVE_TIME', SECONDS_IN_DAY * 7 * 2); // 2 weeks


[/quote]





Thanks! I did not manage to test it extensively, but it seems it only affected guest accounts.

Instead I just made an addon to fn_clear_cart($cart) when SESSIONS_STORAGE_ALIVE_TIME is reached from the last cart transaction time stamp.