I just migrate my site to localhost and everything working fine. but when i try to logged into my admin pannel then its through me error like Your current session has been expired.
I removed all the cache from the folder also change the setting from database about session expiration time.
also we have tried each and every possible solution from this thread.
Thanks in advance.
This is the perfect solution
first step: find "admin/security/session_lifetime" in table core_config_data. if not exist create one and set value to 86400
second step: clean cache (remove var/cache)
login and fix
https://github.com/magento/magento2/issues/5309
I was facing same issue, After some research I had found the solution for admin login issue.
It's occured due to MySql TIMESTAMP and MySql version issue.
If we are using MySql 5.5.x than we need to take care about TIMESTAMP.
Here is the perfect solution which helps you to overcome the admin login issue of session.
Go to : admin_user_session
table in MySql
Set created_at
column to '0' and updated_at
column to 'CURRENT_TIMESTAMP' as it is.
Refresh admin page and try to login again, it will work 100%
Thanks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With