diff --git a/ChangeLog b/ChangeLog index 4e1afbe3a..e64e92570 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ $Source$ * themes.php, libraries/common.lib.php, libraries/defines.lib.php, libraries/select_theme.lib.php, themes/darkblue_orange/info.inc.php, themes/original/info.inc.php: Better theme version check (bug #1023029). + * libraries/auth/cookie.auth.lib.php: Remember database when using cookie + login (bug #1027873). 2004-09-13 Garvin Hicking * browse_foreigners.php: bug #1027204 - paging did not diff --git a/libraries/auth/cookie.auth.lib.php b/libraries/auth/cookie.auth.lib.php index 460be6d75..82512f358 100644 --- a/libraries/auth/cookie.auth.lib.php +++ b/libraries/auth/cookie.auth.lib.php @@ -422,6 +422,11 @@ if (top != self) { ?> + ' . "\n"; + } + ?> @@ -529,7 +534,7 @@ function PMA_auth_check() if ($decrypted_time < $GLOBALS['current_time'] - $GLOBALS['cfg']['LoginCookieValidity']) { return FALSE; } - + // password if (!empty($pma_cookie_password)) { $PHP_AUTH_PW = $pma_cookie_password; @@ -608,12 +613,12 @@ function PMA_auth_set_user() // Name and password cookies needs to be refreshed each time // Duration = one month for username setcookie('pma_cookie_username-' . $server, - PMA_blowfish_encrypt($cfg['Server']['user'] . ':' . $GLOBALS['current_time'], + PMA_blowfish_encrypt($cfg['Server']['user'] . ':' . $GLOBALS['current_time'], $GLOBALS['cfg']['blowfish_secret']), time() + (60 * 60 * 24 * 30), $GLOBALS['cookie_path'], '', $GLOBALS['is_https']); - + // Duration = till the browser is closed for password (we don't want this to be saved) setcookie('pma_cookie_password-' . $server, PMA_blowfish_encrypt(!empty($cfg['Server']['password']) ? $cfg['Server']['password'] : "\xff(blank)",