1

I have set cookie value using onclick event.

At page load i want to check cookie value so have create module as explained in this How to add Cookie Magento 2? url.

everything is working properly but when i enable FPC , i can't get updated value from cookie.

can anyone help me to solve this issue.

  • Yes, FPC cause issues with cookies. I think for the solution you need check cookie after the page load using XHR request. – Emipro Technologies Pvt. Ltd. Apr 23 '18 at 13:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.