Hi,
Adding this setting in user preferences will not work correctly, as all overrides to config.inc.php's values are loaded after auth is done, when database is available. The only solution for this to work, is to try loading user overrides from session cache ($_SESSION['cache']['server_?']['userprefs']) just after config.inc.php is read.