Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Your current session has been expired. Magento2

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.

like image 529
Ishan Shah Avatar asked Apr 14 '17 09:04

Ishan Shah


2 Answers

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

like image 95
Er Amit Shukla Avatar answered Oct 04 '22 00:10

Er Amit Shukla


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.

like image 27
Alpesh Movaliya Avatar answered Oct 03 '22 22:10

Alpesh Movaliya