-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
We have some problems with one of our projects. Ocassionally, look's like magento simply redirects to login page when trying to checkout. Is very hard for us to find the problem because happens only sometimes. Because the context of the problem, at first time look hard to reproduce or investigate, but we also found a reproductive method that's generate the same result as the random one. That if you go to /checkout page and simply opens multiple tabs when and paste the same /checkout address into it, the session is lost in browser. This should not be a problem for a customer with a "normal behavior", but neither is normal. The session should be persistent in browser regardless how many requests from how many tabs are opened.
Preconditions
- Magento 2.2.2
- Varnish
- Redis
Steps to reproduce
- Login as customer
- Add a product in cart
- Go to /checkout page
- Open tab - paste - enter (multiple times times - 5-6 tabs for example)
Expected result
- Checkout page on each tab with session intact.
Actual result
The session is for the current customer and have to re-authenticate into shop
Before lossing the session a rest request to /rest/default/V1/carts/mine/estimate-shipping-methods respond with 401 status code (likely because the cookie don't hit it)
Video link with the method used to reproduce the problem.
