Merge remote branch 'origin/master'
This commit is contained in:
@@ -1086,10 +1086,13 @@ class PMA_Config
|
||||
if ($validity == null) {
|
||||
$validity = 2592000;
|
||||
}
|
||||
if (strlen($value) && null !== $default && $value === $default
|
||||
&& isset($_COOKIE[$cookie])) {
|
||||
// remove cookie, default value is used
|
||||
return $this->removeCookie($cookie);
|
||||
if (strlen($value) && null !== $default && $value === $default) {
|
||||
// default value is used
|
||||
if (isset($_COOKIE[$cookie])) {
|
||||
// remove cookie
|
||||
return $this->removeCookie($cookie);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
if (! strlen($value) && isset($_COOKIE[$cookie])) {
|
||||
|
@@ -587,11 +587,11 @@ $cfg['Confirm'] = true;
|
||||
$cfg['LoginCookieRecall'] = true;
|
||||
|
||||
/**
|
||||
* validity of cookie login (in seconds)
|
||||
* validity of cookie login (in seconds; 1800 seconds is 30 minutes)
|
||||
*
|
||||
* @global integer $cfg['LoginCookieValidity']
|
||||
*/
|
||||
$cfg['LoginCookieValidity'] = 1440;
|
||||
$cfg['LoginCookieValidity'] = 1800;
|
||||
|
||||
/**
|
||||
* how long login cookie should be stored (in seconds)
|
||||
|
Reference in New Issue
Block a user