]> git.joonet.de Git - adminer.git/commitdiff
Set session cache limiter only without session.auto_start (bug #586)
authorJakub Vrana <jakub@vrana.cz>
Tue, 16 Jan 2018 15:56:14 +0000 (16:56 +0100)
committerJakub Vrana <jakub@vrana.cz>
Tue, 16 Jan 2018 15:56:14 +0000 (16:56 +0100)
adminer/include/bootstrap.inc.php

index bc890fdf1c9388ab924aef4483da1009bd439ce1..de68a6bc441df608abb427b82eb3396e080ad5a3 100644 (file)
@@ -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) {