Logout from all servers by default (RFE #1370874).

This commit is contained in:
Michal Čihař
2006-04-27 08:40:22 +00:00
parent 817c2339bd
commit 15eb10076c
4 changed files with 20 additions and 2 deletions

View File

@@ -278,9 +278,15 @@ function PMA_auth_check()
$from_cookie = false;
$from_form = false;
// The user wants to be logged out -> delete password cookie
// The user wants to be logged out -> delete password cookie(s)
if (!empty($old_usr)) {
setcookie('pma_cookie_password-' . $server, '', 0, $GLOBALS['cookie_path'], '', $GLOBALS['is_https']);
if ($GLOBALS['cfg']['LoginCookieDeleteAll']) {
foreach($GLOBALS['cfg']['Servers'] as $key => $val) {
setcookie('pma_cookie_password-' . $key, '', 0, $GLOBALS['cookie_path'], '', $GLOBALS['is_https']);
}
} else {
setcookie('pma_cookie_password-' . $server, '', 0, $GLOBALS['cookie_path'], '', $GLOBALS['is_https']);
}
}
// The user just logged in