0

As my admin account will be logged out for every 1 hour, I am wondering if there is any way that I can do to change my the session lifetime for all my admin accounts.

Here are what I have done:

Magento backend > Configuration > Advanced > Admin > Security > Session lifetime(seconds): 86400

Magento backend > General > Web > Session Cookie Management > Cookie Lifetime; 86400

Change in phpMyadmin: enter image description here

However, it is still not working. Is there any more things I have to change in order to extend my admin session lifetime?

  • Check your code files, and make sure the value is not hard coded any where. – MGento Nov 6 '17 at 5:38
1

Open your php.ini file, and check for the value session.gc_maxlifetime Set some higher value which you want. Restart your server and check.

  • How to find this file (php.ini)? As I went to my Magento root, there isn't any file have this name. After I research, there is solution that ask me to create a file call 'phpinfo.php' and key in <?php phpinfo(); ?> in this file. How should I proceed after this? Btw, really thank you for the reply! – John.J Nov 6 '17 at 6:25
  • php.ini file is your server's php configuration file. Please check your server's php folder. – MGento Nov 6 '17 at 9:33
  • If you are on shared hosting you probably won't have access to the php.ini. It is possible your hosts will not change the lifetime value either because it may impact other hosted sites. – jscar Nov 7 '17 at 8:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.