ACP2E-4535: Submitting the forgot-password form destroys or regenerates the session (PHPSESSID changes) and clears the guest cart
The ACP2E-4535 patch fixes the issue where submitting the forgot-password form causes the session to be destroyed or regenerated (PHPSESSID changes) and clears the guest cart. This patch is available when the Quality Patches Tool (QPT) 1.1.78 is installed. The patch ID is ACP2E-4535. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.7-p1
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.7 - 2.4.8-p4
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
When submitting the forgot-password form destroys or regenerates the session (PHPSESSID changes) and clears the guest cart.
Steps to reproduce:
- Add a product to the cart as a guest.
- Verify that the mini-cart displays one item.
- Open the browser’s developer tools and navigate to Application > Cookies. Note the current PHPSESSID value.
- On the storefront, navigate to
/customer/account/forgotpassword/. - Enter any email address in the email field.
- Complete the CAPTCHA validation.
- Click Reset My Password.
- Wait for the success message to appear.
- Check the
PHPSESSIDcookie value again. - Review the mini-cart contents.
Expected results:
The cart retains all items.
Actual results:
After submitting the Forgot Password form, the PHPSESSID cookie value changes, causing the mini-cart to become empty. As a result, the guest quote is orphaned because it was associated with the previous session ID.
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.