Solved: Exceeded Allowed Session Max Size in Magento 2

in magento2 •  last year 

Facing the "exceeded allowed session max size" glitch in Magento 2 after an upgrade? Dive into this quick guide for a seamless resolution. Discover how to swiftly tackle the issue and keep your Magento 2 admin panel running smoothly.

Solved-Exceeded-Allowed-Session-Max-Size-in-Magento-2-Social-Share.png

The Scenario:
After a Magento upgrade, an admin panel issue surfaced with the error:

report.WARNING: Session size of 276448 exceeded allowed session max size of 256000

Understanding Session Management in Magento 2:
Magento 2 uses session management to prevent DoS attacks and control data transfer limits.

Solving the Issue:
To fix the error, disable max session size for admin using either the admin panel or a simple command.

Solution Steps:

  • Admin Panel:

    1. Navigate to Stores > Settings > Configuration.
    2. Select System under Advanced.
    3. In the Security section, set Maximum Session Size in Admin to 0 and save.
  • Command Line:
    Run php bin/magento config: set system/security/max_session_size_admin 0

Conclusion:
If this solution helps, share it. Any questions? Drop a comment below.

Thank You! 🍀

Read Full Blog: https://meetanshi.com/blog/exceeded-allowed-session-max-size-in-magento-2/

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!