phpmyadmin logs out after 1440 secs

后端 未结 24 1300
予麋鹿
予麋鹿 2021-01-29 23:29

In my local development Ubuntu box I use MySQL and phpmyadmin to work with the database.

Whenever phpmyadmin is idle for 1440 secs (24min) the session expires. I lose m

24条回答
  •  生来不讨喜
    2021-01-30 00:04

    It is not working. The PHP session will expire anyway after 1440 seconds.

    Change in PHP.ini this too:

    session.gc_maxlifetime = 3600
    

    http://www.phpmyadmin.net/documentation/Documentation.html#config

    Also, from PHP.ini:

    If you are using the subdirectory option for storing session files

    ; (see session.save_path above), then garbage collection does not

    ; happen automatically. You will need to do your own garbage

    ; collection through a shell script, cron entry, or some other method.

    ; For example, the following script would is the equivalent of

    ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):

    ; cd /path/to/sessions; find -cmin +24 | xargs rm

提交回复
热议问题