Some time fresh Magento or after upgrade to the latest version you may see this error on admin area Magento 2 Admin Page Error: Your current session has been expired
let’s see the possible solution!
first, check for a current session lifetime
php bin/magento config:show admin/security/session_lifetime
If there is no entry issue the following query
insert into core_config_data (config_id, scope, scope_id, path, value) values (null, ‘default’, 0, ‘admin/security/session_lifetime’, 36000);
If entry is there increase the session life time. It can be done in two ways
UPDATE core_config_data SET value = 86400 WHERE path = ‘admin/security/session_lifetime’;
Issue the following command from Magento root directory
php bin/magento config:set admin/security/session_lifetime 86400
php bin/magento cache:clean
hopefully This should solve your problem.
Kindly let me know in comment if it worked for you or not!