diff options
author | Michal Čihař <michal@cihar.com> | 2017-11-28 17:47:50 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-11-28 17:51:33 +0300 |
commit | 8dc0f4b8195dc8824081cb8b7116bc07b6347525 (patch) | |
tree | 76f9e0e0570d38a6de2ec1067b6db39b3e6b667f /db_operations.php | |
parent | 92a0b8451c63b692a89069e11f404b9e03dbce30 (diff) |
Use session to indicate switching to new database
There is no reason to store this in cookies.
Issue #11688
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'db_operations.php')
-rw-r--r-- | db_operations.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db_operations.php b/db_operations.php index 284932d0a9..c4ff0dd8ef 100644 --- a/db_operations.php +++ b/db_operations.php @@ -179,10 +179,10 @@ if (strlen($GLOBALS['db']) > 0 if (isset($_REQUEST['switch_to_new']) && $_REQUEST['switch_to_new'] == 'true' ) { - $GLOBALS['PMA_Config']->setCookie('pma_switch_to_new', 'true'); + $_SESSION['pma_switch_to_new'] = true; $GLOBALS['db'] = $_REQUEST['newname']; } else { - $GLOBALS['PMA_Config']->setCookie('pma_switch_to_new', ''); + $_SESSION['pma_switch_to_new'] = false; } } } |