-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Customer logged out automatically in checkout process #15641
Comments
Duplicate of #12362 ? |
We have a similar issue on one our project. Have someone any ideas how to catch and fix this intermittent issue? |
Looks like, we found the reason. It's customer plugin for each action - https://github.com/magento/magento2/blob/2.2/app/code/Magento/Customer/Model/Plugin/CustomerNotification.php The most easly and fuster way to reproduce this issue is appling coupon on shopping cart page for logged in customer (sometimes you need to apply/cancel couplon several times). |
Hello, @Gaboemmi, thank you for your report. Can you please specify, what browser do you use? |
Magento 2.2.5 EE - I confirm, the same error. Seems related to: As I investigated, every time /checkout/index/index page is refreshed, it changes session ID (PHPSESSID). It does not happen on other pages. I've tried to remove I really have no idea why is it here and what it's supposed to do. PS. I've even checked Magento 1 Mage_Checkout_OnepageController class to check if there was a line such like this. Nope. This one only appeared in Magento 2 without any corresponding issue. |
@Gaboemmi, thank you for your bug report. |
@agata-maksymiuk I followed your directions and this fixed my problem. The line has been commented out for now. hopefully, Magento 2 will remove this deprecated code that is causing issues. I did a clean upgrade to 2.2.5 and the issue is easily deprecated. |
Hi @Gaboemmi. Thank you for your report and collaboration! The related internal Jira ticket But if you still run into this problem please update or provide additional information/steps/preconditions in the Description section and reopen this issue. |
Preconditions
Steps to reproduce
Expected result
Actual result
Additional info
To reproduce issue guaranteed put a breakpoint in Magento\CatalogInventory\Observer\QuantityValidatorObserver::execute method.
Issue is caused by duplicated session cookies send after session_regenerate_id() is called.
Possible related to PHP with Apache bug: https://bugs.php.net/bug.php?id=75554&edit=1
The text was updated successfully, but these errors were encountered: