magento2: Admin Login doesn't work after updating to 2.1.0

Hey there,

after an update to v2.1.0 via composer and CL setup:upgrade/ setup:di:compile we aren’t able to log in our admin area while frontend logins seems to work.

The error message is

  Your current session has been expired.

We’re saving sessions as files. I noticed that the DB got some entries in admin_user_session, all containing the wrong (localhost) IP (fixed). This is related to our haproxy->varnish->nginx->php7.0-fpm setup, but did work before… So my first question, does this table normally appear even if M2 stores session as files?

As M2.1.0 required an update from PHP-FPM 7.0.4 -> 7.0.8 this could also be issued by the php update. 2nd question: did anybody stumple upon the same problems?

Best regards Jan

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 33 (12 by maintainers)

Commits related to this issue

Most upvoted comments

Can be temporary fixed by setting the

 session.cookie_lifetime 86400
 session.gc_maxlifetime 86400

 Table core_config_data -> admin/security/session_lifetime -> 86400

so this issue should be related to localization/time…

I had the same issue. Adding admin/security/session_lifetime to 86400 in core_config_data and flushing the cache solved it.

bin/magento config:set admin/security/session_lifetime 86400
bin/magento cache:flush

same problem and fixed( using Asia timezone, web installation and install use domain with non default port)

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

@gewaechshaus, this solution doesn’t work for me!

Admin Side login that time session expired

msg is : capture

give solution