I get the Your current session has been expired. error when trying to login.

In the admin_user_session table the session_id column which should be null is populated with a single character which means that sessions do not match

How has this happened and how do I fix it?

Magento 2.4.3 PHP 7.4

  • ok so the comment for the session id says "Deprecated: Session ID value no longer used " but this appears to be false, I've changed varchar(1) to varchar (128) and it works May 9 at 14:31

1 Answer 1


This is the proper solution for this one.

Step-1 : find admin/security/session_lifetime in table core_config_data. if not exist create one and set value to 86400

Step-2 : clean cache (remove var/cache).

If you want same using CLI, then run this command.

php bin/magento config:set admin/security/session_lifetime 86400

php bin/magento cache:flush

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.