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.

  • check logs in var/logs Sep 5, 2020 at 7:03
  • facing the same issue , has someone found solution to this ?? Jan 17, 2022 at 13:07

1 Answer 1


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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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