# 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 :

```php
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](https://cdn.hashnode.com/res/hashnode/image/upload/v1638260064109/3VSlVJnu3.png align="left")

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