cancel
Showing results for 
Search instead for 
Did you mean: 

Clean Magento 2.1 install. "Your current session has been expired."

Clean Magento 2.1 install. "Your current session has been expired."

As above. I've done a clean, install.

I set DB sessions during install as Files seem to fail.

I also deselected all optional modules as otherwise it would just sit there checking. Installation seemed to work fine with these settings but now when I try to login to the admin screen is says "Your current session has been expired". So now I can't do anything.

 

I've increased the values on these:

 session.cookie_lifetime 86400
 session.gc_maxlifetime 86400

I've also deleted the var/cache folder.

 

There was a suggestion to change this:

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

 But that row doesn't exist in my database.

 

Cron jobs seem to be running and not returning any errors.

 

Any ideas?

 

2 REPLIES

Re: Clean Magento 2.1 install. "Your current session has been expired."

You just need to apply the session changes to PHP and then clear the cache:

# /path/to/php bin/magento cache:clean
Cleaned cache types:
config
layout
block_html
collections
reflection
db_ddl
eav
customer_notification
full_page
config_integration
config_integration_api
translate
config_webservice

it should fix your session issue.

Re: Clean Magento 2.1 install. "Your current session has been expired."

i have the same problem. Do i need to add these session thing in my php.ini file?

 

And then just delete the cache right? it doesnt work...