Problem:
When my magento2.3 application redirects user to payment gateway, i can access all the session data. but when it returns backs from there it do not have checkout session data or any session data. this happens only for google chrome
Things i already explored
From google chrome release notes (https://www.chromium.org/updates/same-site) i can see they have changed samesite default value to "Lax", and disabling this works.
Solution Looking for
I want to give samesite=None value to all my outgoing requests to any third party services. Any help or lead would be highly appreciated.
2
Answers
You can try setting the samesite=None by following steps..
file : etc/frontend/di.xml
file : Plugin/View/Element/Js/ManagePath.php
file : etc/di.xml
file : Session/CustomConfig.php
NOTE : replace namespace & module with your namespace and module.
Since I don’t have enough reputation to comment on the accepted answer, I must point out that for me it didn’t work since Chrome asked that all cookies with SameSite set to "none" to be flagged as secure.
The fix was adding:
Without flagging them as secure I would have problems adding items to cart.
Worked for me, hope it helps others that encounter same issue.