After upgrading Magento to 2.4.4 with PHP 8.1 and resolving most of the errors. I can't login to the admin panel.

After submitting the credentials it redirects me back to login, while I can see the URL showing admin/dashboard/key/xxxxxxx I can see the generated token key but it's not passing.


PHP SODIUM is installed using PHP 8.1

The question was asked here: Admin Login Issue 2.4.4 and Magento2 : Admin dashboard keep showing login form

but no resolved the issue

1 Answer 1


I had this same issue after upgrading to 2.4.4. For me, running the following command worked

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

Also try clearing cache from browser and open in incognito

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.