Commit 9a5889c3 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Config.php: error message about to high session timeout now reports the PHP settings.

parent b9e40065
Pipeline #1276 passed with stage
in 1 minute and 45 seconds
......@@ -95,7 +95,7 @@ class Config {
}
// In case of missing $configPhp
if (empty($fileConfigPhp) ) {
if (empty($fileConfigPhp)) {
# Read 'LocalConfiguration.php'
if (isset($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][EXT_KEY])) {
......@@ -427,11 +427,13 @@ class Config {
if (ini_get('session.gc_maxlifetime') < $timeout ||
ini_get('session.cookie_lifetime') < $timeout
) {
throw new qfq\UserFormException ("The specified timeout of $timeout seconds is higher than the PHP config 'session.gc_maxlifetime' and/or 'session.cookie_lifetime'");
throw new qfq\UserFormException ("The specified timeout of $timeout seconds is higher than the PHP config 'session.gc_maxlifetime' ("
. ini_get('session.gc_maxlifetime') . ") and/or 'session.cookie_lifetime' ("
. ini_get('session.cookie_lifetime') . ")");
}
if ($timeout > SYSTEM_COOKIE_LIFETIME) {
throw new qfq\UserFormException ("The specified timeout of $timeout seconds is higher than the hardcoded cookie lifetime.");
throw new qfq\UserFormException ("The specified timeout of $timeout seconds is higher than the hardcoded cookie lifetime (" . SYSTEM_COOKIE_LIFETIME . ")");
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment