Yeah, this might not follow all the security best practices in the world, and if your database contains highly sensitive information, you should probably close this page, shut down your browser and get this whole idea out of sight and mind! But, for the rest of us, the default timeout of 30 minutes is really, really annoying!

To increase the phpMyAdmin timeout (we'll assume 10 hours):

  1. Add this line to /config.inc.php:

    $cfg['LoginCookieValidity'] = 36000;

  2. In /setup/lib/index.lib.php

    $cf->getValue('LoginCookieValidity') > 36000;

  3. If you don't already have a .htaccess file for your site, create one, and add the following line to override the default PHP session timeout:

    php_value session.gc_maxlifetime 36000

    I would not recommend altering this value in your main php.ini file, as it will allow a ridiculously long session timeout for all your PHP sites.

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *