I have a problem regarding Magento 2.3.2. On some products detail pages, which uses AJAX to load some images, the customer gets an error, when adding product to cart - "Your session has expired".

The Magento Log und Apache Log has no error. Does Magento has any problems with Ajax Request via GET???

2 Answers 2


No I think there is no issue with Magento session.

I think it might be issue with your server configuration. So I would suggest try to discuss the same thing with your server support team and still you have doubts you can setup this project in another server or local system. Again still you are facing the same issue then you should enable the developer mode and try to debug this issue.

Please let me know if you need my help.

Hope this will help you.


Error “Your session has expired” when click on add to cart

UPDATE `core_config_data` SET `value` = '' WHERE `core_config_data`.`path` = 'web/unsecure/base_url';

UPDATE `core_config_data` SET `value` = '' WHERE `core_config_data`.`path` = 'web/secure/base_url';

after that run command in your terminal

php bin/magento cache:clean

Reference link Error "Your session has expired" when click on add to cart in magento 2.3


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.