Logged In customer automatically logged out during the checkout process when one of the catalog setting is set to YES in admin. This issue occurred when user come to the checkout page and sometimes just after placing an order. Sometimes when user just refresh the checkout page.
Preconditions
- Magento CE 2.2.2 with sample data is installed. PHP 7.0.26
Steps to reproduce
- Enable the setting in Admin -> Stores -> Configuration -> Catalog -> Catalog -> Recently Viewed/Compared Products -> Synchronize widget products with backend storage -> Yes
- Login as register customer.
- Add product in cart and go to the checkout page.
- Just refresh the checkout or go ahead with checkout process.
Expected result
- Customer should not be logged out automatically
Actual result
- Customer is logged out automatically
I have tested this with different PHP versions and in multiple websites.
