Fix the session issue with Redis cache

Created by Support Agent, Modified on Sun, 19 Apr at 1:22 AM by Support Agent

Issue:

 

We have then made a fresh installed Magento 2.3.4 of your latest checkout, tested it, and after purchase landed in an empty cart.

Something seems to be bugging in the module.


Solution: 


This issue is caused due to the session error with the Redis cache. 
Our module processes the data longer than the Redis does; so the Redis session success of the cart is timed out. And it causes the issue.
To fix the issue, we would like to give you the solutions to increase the value of config "break_after_frontend" (increase the time of Redis cache from 5 to 15 seconds)

+ Option 1: Run this command php bin/magento setup:config:set --session-save=redis --session-save-redis-break-after-frontend=15 

(Please take a look at this article for more information: https://devdocs.magento.com/guides/v2.3/config-guide/redis/redis-session.html)

+ Option 2:  Change the value config "break_after_frontend" of Redis session on this file app/etc/env.php (attachment below) 


If you have any issues, please don't hesitate to contact us.


Get to know us


BSS Commerce is a full-service ecommerce agency with 14+ years of experience, supporting 75,000+ customers worldwide. As an Adobe Commerce Solution Bronze Partner and Select Magento Extensions Builder, we deliver trusted end-to-end solutions.


Our core strength is Magento, with 150+ extensions designed to enhance store performance and drive growth. With deep expertise from years of working on Magento websites, we deliver scalable, high-impact solutions backed by strong client trust.


Discover our extensions: https://bsscommerce.com/magento-2-extensions.html 


Here are our most powerful plugins:


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article