From 756e304c924f90b014b81d23fb292166e02ae7dd Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 16 Jan 2018 16:56:14 +0100 Subject: [PATCH] Set session cache limiter only without session.auto_start (bug #586) --- adminer/include/bootstrap.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/include/bootstrap.inc.php b/adminer/include/bootstrap.inc.php index bc890fdf..de68a6bc 100644 --- a/adminer/include/bootstrap.inc.php +++ b/adminer/include/bootstrap.inc.php @@ -36,8 +36,8 @@ if (!strpos($_SERVER["REQUEST_URI"], '?') && $_SERVER["QUERY_STRING"] != "") { / $HTTPS = $_SERVER["HTTPS"] && strcasecmp($_SERVER["HTTPS"], "off"); @ini_set("session.use_trans_sid", false); // protect links in export, @ - may be disabled -session_cache_limiter(""); // to allow restarting session and to not send Cache-Control: no-store if (!defined("SID")) { + session_cache_limiter(""); // to allow restarting session session_name("adminer_sid"); // use specific session name to get own namespace $params = array(0, preg_replace('~\\?.*~', '', $_SERVER["REQUEST_URI"]), "", $HTTPS); if (version_compare(PHP_VERSION, '5.2.0') >= 0) {