I am facing a very weird Issue in my M2 Store, whenever a user gets back from payment gateway after successful transaction, user automatically logs out from the session and land back on cart page with successful txn message instead of success page.

I do not get this issue at every successful transaction, i have also noticed one more thing that this is happening from Chrome only, when i tried it from firefox i wasn't able to reproduce the issue.

Please guide what could be the possible reason for all this.

Thanks for your help.


Most likely SameSite cookie issue. See this Github issue for more information. Also worth checking if there is an update for the payment module you are using.

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.