Skip to content

Commit

Permalink
Set session cache limiter only without session.auto_start (bug #586)
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed Jan 16, 2018
1 parent e762a6a commit 756e304
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminer/include/bootstrap.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
$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) {
Expand Down

0 comments on commit 756e304

Please sign in to comment.