"Saruman believes it is only great power that can hold evil in check, but that is not what I have found. I found it is the small everyday deeds of ordinary folk that keep the darkness at bay. Small acts of kindness and love." --Gandalf

Magento 2 report.WARNING: Session size of xxxxxx exceeded allowed session max size of 256000.

Monday, August 16th, 2021

After updating to Magento 2.4.3, there is an error that is not directly related to PHP or nginx that can cause some headaches in the admin, usually in the form of an error message and pop-up that has to be acknowledged on every page load (see above).

In the var/log/system.log, it will show up as:

[2021-08-16 19:22:52] report.WARNING: Session size of 375349 exceeded allowed session max size of 256000. [] []

A quick fix for this is to set the limit to "0" at the cli. It can be accomplished with the following command:

bin/magento config:set system/security/max_session_size_admin 2560000

Run the command above then flush cache:

bin/magento c:f

then you're all set!

Views: 7783