Magento 2 Checkout Issue – Customer Logged Out Automatically

checkoutcustomer-sessionmagento2magento2.2session

I have a strange issue on one of the site. When I log in or register as a new customer and adding few items in shopping cart. Then go to the checkout page it is automatically logged out the customer in some random cases.

Sometimes it just logged out the user when I come to the checkout page. Sometimes it logged out the user when I go to the payment selection page. This is random behavior. Also in some cases, I can able to place an order with logged in but in success page, it is automatically logged out the customer.

enter image description here

enter image description here

Best Answer

I found this is the default Bug in Magento CE 2.2.2 and reported it on github https://github.com/magento/magento2/issues/13889

There is one catalog setting is set to YES in my site and that was causing this issue. When I set it back to NO it is working fine. This issue is only coming in Magento version 2.2.2 as we have upgraded it from Magento version 2.1.7 and it was working fine with that version.

enter image description here

Related Topic