The current session has expired. Magento2

I just transfer my site to localhost and everything works fine. but when I try to enter my admin panel, then through my error, how Your current session has been expired.

I deleted the entire cache from the folder, also changing the setting from the database about the session expiration time.

also we tried to find all possible solutions from this stream.

Thanks in advance.

+4
source share
6 answers

I ran into the same problem. After some research, I found a solution for logging in to the administrator.

This was due to a problem with MySql TIMESTAMP and MySql.

If we use MySql 5.5.x, we must take care of TIMESTAMP.

, .

: admin_user_session MySql created_at "0" updated_at "CURRENT_TIMESTAMP", .

, 100%

.

+4

[core_config_data] .

  • PHPMYADMIN
  • :
    UPDATE core_config_data SET value= 864000 WHERE path= 'admin/security/session_lifetime'

, .

+1

, . .

+1

: "admin/security/session_lifetime" core_config_data. , 86400

: ( var/cache)

https://github.com/magento/magento2/issues/5309

+1

.

php bin/magento cache: clean

php bin/magento indexer: reindex

, :

rm -rf pub/static/*//

rm -rf var/*// vp

bin/magento setup: static-content: deploy

chmod -R 7777 var pub/static// ( )

0

, .

session expired

1 : "admin/security/session_lifetime" core_config_data.

, , 86400

second step: clear the cache (delete var / cache)

log in and fix

0
source

Source: https://habr.com/ru/post/1674815/


All Articles