This article provides a patch for the known Magento Commerce 2.2.5 issue related to getting the 503 error on store front, with "Unable to send the cookie. Maximum number of cookies would be exceeded." error message in logs.
Customers get 503 error when navigating the store front. In the
var/log/exception.log file the following error message is written "Unable to send the cookie. Maximum number of cookies would be exceeded."
The issue occurs because Magento default cookies limit is set to 50, and if client's browser hits the limit, Magento throws an exception. The solution provided in the patch increases the cookie limit to 200.
The patch is attached to this article. To download it, scroll down to the end of the article and click the file name, or click the following link:
Compatible Magento versions:
The patch was created for:
- Magento Commerce 2.2.5
The patch is also compatible (but might not solve the issue) with the following Magento versions and editions:
- Magento Commerce, Magento Commerce Cloud
How to apply the patch
See How to apply a composer patch provided by Magento for instructions.