Bringerr Inc.

No activity within 1440 seconds


From 2010-11-09
When developing websites with OSS, most likely that you're using the good eternal PHPMyAdmin for the DB interactions. One annoying thing about development, is that you rarely need the connections to the internal DB to be more secure than it would normally be on the server, or need just a minimal security as in case when you're working in a company which is protected by a good firewall. And why am I reminding this? Because during a work day you can return to PHPMyAdmin several [tens] of times and each time rediscover this annoying message which forces you to type again and again the username and the password, or at least, to click on the 'Go' button, or you know what? You know...
The cure?
Find your config.default.php with something similar to
locate config.default.php
Open the file, find the line which contains LoginCookieValidity and set the value to something like:
$cfg['LoginCookieValidity'] = 54000;
54000 seconds equals to 15 hours, and if you're planning to stay more than that near the computer, then you can multiply this value by other factor (just don't tell anyone..)

Comments

If you are using Ubuntu, you do not want to edit the default settings file. Instead, edit: /etc/phpmyadmin/config.inc.php and then ADD this to the end of the file: $cfg['LoginCookieValidity'] = 54000; Don't forget the semicolon at the end of the line.

The lifetime of a cookie is also limited by a PHP setting, which also defaults to 1440, and must also be increased. Edit php.ini and change: session.gc_maxlifetime = 1440 to session.gc_maxlifetime = 54000 The location of the php.ini file depends on your configuration. Use the locate command, and be aware that there will be more than one--you generally don't want any of the php.ini's that are in web folders, or under a folder named "cli".

Pages