bug #2136986 [auth] Cannot create database after session timeout
This commit is contained in:
@@ -2443,7 +2443,7 @@ window.addEvent('domready', function(){
|
||||
}
|
||||
|
||||
/**
|
||||
* Cache information in the session
|
||||
* Verifies if something is cached in the session
|
||||
*
|
||||
* @param unknown_type $var
|
||||
* @param unknown_type $val
|
||||
@@ -2459,7 +2459,7 @@ function PMA_cacheExists($var, $server = 0)
|
||||
}
|
||||
|
||||
/**
|
||||
* Cache information in the session
|
||||
* Gets cached information from the session
|
||||
*
|
||||
* @param unknown_type $var
|
||||
* @param unknown_type $val
|
||||
@@ -2479,7 +2479,7 @@ function PMA_cacheGet($var, $server = 0)
|
||||
}
|
||||
|
||||
/**
|
||||
* Cache information in the session
|
||||
* Caches information in the session
|
||||
*
|
||||
* @param unknown_type $var
|
||||
* @param unknown_type $val
|
||||
@@ -2494,6 +2494,21 @@ function PMA_cacheSet($var, $val = null, $server = 0)
|
||||
$_SESSION['cache']['server_' . $server][$var] = $val;
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes cached information from the session
|
||||
*
|
||||
* @param unknown_type $var
|
||||
* @param unknown_type $server
|
||||
* @return mixed
|
||||
*/
|
||||
function PMA_cacheUnset($var, $server = 0)
|
||||
{
|
||||
if (true === $server) {
|
||||
$server = $GLOBALS['server'];
|
||||
}
|
||||
unset($_SESSION['cache']['server_' . $server][$var]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a bit value to printable format;
|
||||
* in MySQL a BIT field can be from 1 to 64 bits so we need this
|
||||
|
Reference in New Issue
Block a user