mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-02-17 03:56:48 +01:00
Fix phpMyAdmin logout: proper SignonSession destruction (issue #1680)
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -32,11 +32,14 @@ try {
|
||||
echo '<script>document.getElementById("redirectForm").submit();</script>';
|
||||
|
||||
} else if (isset($_POST['logout']) || isset($_GET['logout'])) {
|
||||
session_name(PMA_SIGNON_SESSIONNAME);
|
||||
@session_start();
|
||||
$_SESSION = array();
|
||||
$params = session_get_cookie_params();
|
||||
setcookie(session_name(), '', time() - 86400, $params["path"], $params["domain"], $params["secure"], $params["httponly"]);
|
||||
session_destroy();
|
||||
header('Location: /base/');
|
||||
return;
|
||||
exit;
|
||||
} else if (isset($_POST['password'])) {
|
||||
|
||||
session_name(PMA_SIGNON_SESSIONNAME);
|
||||
|
||||
Reference in New Issue
Block a user