Skip to main content

Command Palette

Search for a command to run...

Magento 2 - Your Current Session Has Been Expired on Sign in.

Published
1 min read
Magento 2 - Your Current Session Has Been Expired on Sign in.

Are you stuck here? Signing by correct username and password, but it returns error because Current Session Has Been Expired. It maybe because there is no path that has admin/security/session_lifetime value on core_config_data table of your database.

You can add it into that table by adding 1 row of that has the value :

config_id : NULL (automatically)
scope     : default
scope_id  : 0
path      : admin/security/session_lifetime
value     : 86400 (1 day by 60*60*24, it's in second)

Insert to core_config_data table

Next, you need to clean cache : php bin/magento cache:clean or bin/magento cache:flush. Then hard refresh the browser, and sign in.

More from this blog

F

Fiko Borizqy (Bestafiko)

51 posts

I wrote these tutorials for myself in future when I forget for the next steps.