I am facing an issue where the products added in the cart automatically gets removed after 1 hour. I am facing this issue only for guest user.

I have checked the following values and found them to be OK,

I set [ Persistence Lifetime (seconds) ] : 31536000

enter image description here

I have checked the [ session.gc_maxlifetime ] : 1440

enter image description here

I set the [ Cookie Lifetime ] : 86400

enter image description here

Now I am not sure what I need to check further in order to fix this issue. Could someone plz suggest or guide me regarding this issue.

1 Answer 1


To configure it, check the admin cookie lifetime (make sure to configure the cookie domain) and the session.gc_maxlifetime.

Path : Admin -> Configuration -> Stores -> -General -> Web -> Default Cookie Settings

Please try this once.

  • 1
    I have update my question according to your suggestion, but still I am having this issue. Any other suggestion Aug 25, 2023 at 10:10

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.