I have an issue that when someone puts an item in the shopping cart, the cart empties itself very quickly and erases everything they had in the cart. This needs to not happen, when a customer puts products into the cart, they need to stay in the cart for weeks at a time. The longest an item stayed in my cart for was 1.5 days. what can be the reason? please advise.

I set up "Quote Lifetime (days)" to 7 at Admin->System->Config->Sales->Checkout->Shopping cart


  • The problem is with the cart only or to you have troubles with the logged in customers? Are they logged out very quickly after logging in? I'm asking this because I had a similar issue and it was actually a session issue. The server was not configured correctly.
    – Marius
    Aug 13, 2013 at 12:57
  • I have not tested with the logged in customers , but session.gc_maxlifetime value is 1440 , can this be an issue ? Aug 14, 2013 at 12:10
  • That means 24 minutes. It's not much but should be enough to be able to place an order.
    – Marius
    Aug 14, 2013 at 14:08

1 Answer 1


In my experience the session expiration is tied to using filesystem sessions and PHP garbage collection. Try the following to test this out:

  • Switch your session storage to MySQL or to APC/Memcached/Redis (not a long term solution, to be sure, but for testing)

If it turns out this is the case, raise your gc (Garbage Collection) max lifetime value in htaccess, php.ini or in your index.php:


In my experience switching to PHP FPM also helped to alleviate these GC issues.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.