diff --git a/install/install.py b/install/install.py index 654f2085f..f8fa66487 100755 --- a/install/install.py +++ b/install/install.py @@ -688,6 +688,7 @@ $cfg['Servers'][$i]['AllowNoPassword'] = false; $cfg['Servers'][$i]['auth_type'] = 'signon'; $cfg['Servers'][$i]['SignonSession'] = 'SignonSession'; $cfg['Servers'][$i]['SignonURL'] = 'phpmyadminsignin.php'; +$cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout'; """ for items in data: diff --git a/plogical/phpmyadminsignin.php b/plogical/phpmyadminsignin.php index 880ca075d..ea9524608 100644 --- a/plogical/phpmyadminsignin.php +++ b/plogical/phpmyadminsignin.php @@ -19,6 +19,13 @@ if(isset($_GET['token'])){ header('Location: ' . $url); } +else if(isset($_GET['logout'])){ + $params = session_get_cookie_params(); + setcookie(session_name(), '', time() - 86400, $params["path"], $params["domain"], $params["secure"], $params["httponly"] ); + session_destroy(); + header('Location: /dataBases/phpMyAdmin'); + return; +} else if(isset($_GET['password'])){ session_name(PMA_SIGNON_SESSIONNAME); diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 24b7f4fbd..2cef13d1c 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -235,6 +235,7 @@ $cfg['Servers'][$i]['AllowNoPassword'] = false; $cfg['Servers'][$i]['auth_type'] = 'signon'; $cfg['Servers'][$i]['SignonSession'] = 'SignonSession'; $cfg['Servers'][$i]['SignonURL'] = 'phpmyadminsignin.php'; +$cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout'; """ for items in data: