rfe #2127987 warn when session.gc_maxlifetime is less than cookie validity

This commit is contained in:
Michal Čihař
2008-11-30 13:35:23 +00:00
parent c16734e0a8
commit 2126e8e3fb
58 changed files with 112 additions and 44 deletions

View File

@@ -286,6 +286,14 @@ if (! @extension_loaded('mbstring')) {
trigger_error($strMbExtensionMissing, E_USER_WARNING);
}
/**
* Check whether session.gc_maxlifetime limits session validity.
*/
$gc_time = (int)@ini_get('session.gc_maxlifetime');
if ($gc_time < $GLOBALS['cfg']['LoginCookieValidity'] ) {
trigger_error(PMA_Message::decodeBB($strSessionGCWarning), E_USER_WARNING);
}
/**
* Check if user does not have defined blowfish secret and it is being used.
*/