phpmyadmin automatic logout time

后端 未结 9 1921
借酒劲吻你
借酒劲吻你 2020-11-29 18:31

How can I change the phpmyadmin automatic log out time?

It will log out automatically after 1440 seconds which is very low for me. How can I change the option or re

9条回答
  •  南笙
    南笙 (楼主)
    2020-11-29 18:54

    For phpMyadmin 5.0.2 running on Ubuntu 18.04, I edited the file as follows:

    1. sudo nano /usr/share/phpmyadmin/libraries/classes/Config/Forms/User/FeaturesForm.php

    2. find the method public static function getForms() and added LoginCookieValidity field

      public static function getForms()
      {
          $result = [
              'General' => [
                  'VersionCheck',
                  'NaturalOrder',
                  'InitialSlidersState',
                  'LoginCookieValidity', //Added this line if it missing
                  ...........
            }
      
    3. save the file and now you will be able to change the value from user interface.

    [Settings -> General -> Features -> Login Cookie Validatity]

提交回复
热议问题