In Magento2.3, I have cookie value not updating on homepage while its updating on other pages. Even on incognito browser close and reopen cookie value still exist.

Please suggest me way to make cookie working on homepage as well. I have followed following tutorial to set/get cookie. link

Thank you

  • Can you share your code how are you updating the cookie value? – Arbab Ahmed Dec 8 '20 at 21:22

You need to reload the page twice in order for the $_COOKIE function to work , at least in my experience

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.