Merge remote branch 'origin/master'

This commit is contained in:
ninadsp
2010-07-07 18:53:41 +05:30
4 changed files with 14 additions and 6 deletions

View File

@@ -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])) {

View File

@@ -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)