Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function hrcore_civicrm_config($config) {
$defaultTimeout = 100000;
// get the timeout from settings or use the default one
$timeout = $config->get('session.timeout', $defaultTimeout);
ini_set('session.gc_maxlifetime', $timeout);
ini_set('session.cookie_lifetime', $timeout);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment