Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix sid function

  • Loading branch information...
commit 876af58944b3cf09e08976bb426236a2dd7ae53b 1 parent 29d7d6c
Jakub Vrána authored

Showing 1 changed file with 5 additions and 1 deletion. Show diff stats Hide diff stats

  1. +5 1 adminer/include/functions.inc.php
6 adminer/include/functions.inc.php
@@ -165,7 +165,11 @@ function ini_bool($ini) {
165 165 * @return bool
166 166 */
167 167 function sid() {
168   - return (SID && !($_COOKIE && ini_bool("session.use_cookies"))); // $_COOKIE - don't pass SID with permanent login
  168 + static $return;
  169 + if (!isset($return)) { // restart_session() defines SID
  170 + $return = (SID && !($_COOKIE && ini_bool("session.use_cookies"))); // $_COOKIE - don't pass SID with permanent login
  171 + }
  172 + return $return;
169 173 }
170 174
171 175 /** Shortcut for $connection->quote($string)

0 comments on commit 876af58

Please sign in to comment.
Something went wrong with that request. Please try again.