-
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
Incorrect message: Unable to send the cookie. Maximum number of cookies would be exceeded #17195
Comments
Hi @ihor-sviziev. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @ihor-sviziev do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@ihor-sviziev, thank you for your report. |
If a customer ends up with 50 or more cookies for whatever reason then they're basically locked out until they clear their browser cookies correct? If the above is correct then I'm toying with the idea whether it would it be sensible to automatically wipe all the customers cookies when this error occurs and the exception is thrown
Obviously we should focus on fixing the core magento bug, but I've just seen this error caused by some rogue GTM code creating cookies in a loop and was wondering on how to make this error a little less cataclysmic. Just a thought ¯\(ツ)/¯ |
Hi @convenient, I think proper fix will be just updating logged message |
@convenient i checked, m1 websites works good even with 80+ cookies in IE and another browsers, so it's not a big deal |
We are running into this on a customer's website. Has anyone come up with a decent interim solution? |
@JosephMaxwell there's a constant here you can increase with a patch in the interim: https://github.com/magento/magento2/blob/2.3-develop/lib/internal/Magento/Framework/Stdlib/Cookie/PhpCookieManager.php#L32 |
Hi, I investigated this issue more deeper. Previously magento was throwing an exception with message "Unable to send the cookie. Maximum number of cookies would be exceeded.", but after 369c963#diff-69abf748a729353f99cd623615fecd9dR210 - it's just logging of such situation, but cookies are actually sending and no real issue there. This commit was included in Magento 2.2.0, also applied in 2.3.0 It seems like situation much less critical than I thought, just incorrect message is logged here. So no need to change any constants, you can just ignore such messages, it will not affect production anyhow. |
I got the same problem on magento 2.3.2, Is there any fix from Magento or contributors ? |
As I said above - it’s absolutely not critical issue, it could be ignored.
What’s wrong there - message
…On Wed, Aug 28, 2019 at 06:04 giangnv95 ***@***.***> wrote:
I got the same problem on magento 2.3.2, Is there any fix from Magento or
contributors ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17195?email_source=notifications&email_token=AAOJOUNDQG4PGAUIUWR3ZPDQGXTLTA5CNFSM4FMOBE32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD5JXSUI#issuecomment-525564241>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOJOUM4QXHWGZ7TSYXSQHLQGXTLTANCNFSM4FMOBE3Q>
.
|
@ihor-sviziev Thanks for reply, cause it's just a warning mess, I also think I can ignore it :) |
Dears, Thanks,
|
Same issue on 2.2.7. |
Same issue on 2.3.4 |
Hi @ihor-sviziev. Thank you for your report. The fix will be available with the upcoming 2.4.1 release. |
Previously this issue was reported in #7931 and #16568, but no one was able to reproduce it.
Preconditions
Steps to reproduce
about:config
Expected result
Actual result
Tech note
I investigated issue described in #16568 and found that we have 2 different polyfill implementaions for localStorage and sessionStorage:
These implementation are fully different. 1st one works good, but 2nd one adds strange behavior - adds separate cookie with
ls_
prefix in name for each item that should be stored in localstorage andss_<some_id>_
for session storage. As result - when customer goes through website - it will add new and new cookies (because of this strangess_<some_id>_
prefix).Sometimess, we're having 2nd implementation used instead of 1st one.
The text was updated successfully, but these errors were encountered: