Magento admin session timeout solution, that really works !!

Only from admin settings is not enough for session timeout.
You must also update the settings in php.ini

Lets set the session for one year !!!

From Magento admin, got to:

Stores > Configuration > Advanced > Admin > Security

Set the value of Admin Session Lifetime (seconds) to 31536000

Now open you php.ini file and change following two values:

session.cookie_lifetime 31536000
session.gc_maxlifetime 31536000

In order to ensure that you are editing the correct php.ini, create a info.php file with the following content:

<?php
phpinfo();

And hit that file to see all the php settings.

You can see the php.ini file path and the above settings as well.

php.ini-session

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s