rfe #2127987 warn when session.gc_maxlifetime is less than cookie validity
This commit is contained in:
8
main.php
8
main.php
@@ -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.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user