diff options
author | Michal Čihař <michal@cihar.com> | 2016-08-25 10:36:38 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2016-08-25 10:38:17 +0300 |
commit | fb3b722da1ae7e87aed06d4868a0dc63d6025dc6 (patch) | |
tree | a74d54d9518d26a457ad31e2283bea4a3477feb4 /js/whitelist.php | |
parent | 54a059449321d7796cb59a920178f9c4c8031549 (diff) |
Fixed random logouts due to wrong cookie path
Some script did not properly configure their relative path and this
could lead to wrong cookie path being set. This doesn't happen in all
cases as the PHP session engine doesn't seem to set the cookie session
in every request.
Fixes #12251
Fixes phpmyadmin/docker#32
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'js/whitelist.php')
-rw-r--r-- | js/whitelist.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/js/whitelist.php b/js/whitelist.php index 8abd360bb6..9c3da3e207 100644 --- a/js/whitelist.php +++ b/js/whitelist.php @@ -18,6 +18,7 @@ header('Expires: ' . gmdate('D, d M Y H:i:s', time() + 3600) . ' GMT'); // Avoid loading the full common.inc.php because this would add many // non-js-compatible stuff like DOCTYPE define('PMA_MINIMUM_COMMON', true); +define('PMA_PATH_TO_BASEDIR', '../'); require_once './libraries/common.inc.php'; // Close session early as we won't write anything there session_write_close(); |