php - Loss of cookies in Chrome

I send the user to the bank site for online payment. After the user returned from the bank site to my site, the site cookies were completely removed. This problem has occurred to me recently and is not a problem in Firefox browser. What is the cause of this problem? My site is with PrestaShop
Answer
Solution:
If this issue only persist in Chrome, i am guessing it could be an issue with Chrome disabling "SameSite" cookies as default value.
Allow cross-origin cookies:
go to /yourstore/.htaccess and add on top of this file the codeSameSite=None
Make sure to clear your brower cookies
More details about SameSite cookies can be found here
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: call to a member function update() on null
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.