I am facing an issue in my Magento 2.4.2 installation. Every time I try to add products to the cart from the category page, I receive the error message "Your session has expired". However, I am able to add products to the cart without any issues from other parts of the store. I have tried to resolve the issue by following these steps:
php bin/magento setup:store-config:set --base-url="http://MYURL.com/" php bin/magento setup:store-config:set --base-url-secure="https://MYURL.com/"`
I cleared the Magento cache using the command:
php bin/magento cache:clean` php bin/magento cache:clean`
However, the issue persists and I am unable to add products to the cart from the product page.
Has anyone experienced a similar issue in Magento 2.4.2 and can provide any guidance or solution? Is there any other step I can take to resolve this problem?
I appreciate any help or suggestions you can provide. Thank you in advance!
Hello @rolymirand722e
The "Your session has expired" error in Magento 2.4.2 typically occurs when the session timeout period is shorter than the time it takes to add products to the cart. To resolve this issue, you can try the following solutions:
If you find our reply helpful, please give us kudos.
A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.
WebDesk Solution Support Team
Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Thank You,
WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789
Location: 150 King St. W. Toronto, ON M5H 1J9