This article provides a solution for the issue, where customers get logged out or lose items from the shopping cart on the storefront, after being re-directed back to the Adobe Commerce store from payment or other third-party services (session cookie “gets lost”).
Steps to reproduce:
Actual result:
Customer redirected to the empty shopping cart or a blank page.
Expected result:
Customer redirected to a success payment page (or other success page), without losing the checkout data and progress.
The SameSite cookie attribute is set to Lax or not specified (which is treated as set to Lax ). Having SameSite
= Lax disables transferring a cookie to external URLs via POST
requests.
To solve the issue, contact the third-party service provider and request their developers update their integrations to configure cookie parameters.