Created
November 15, 2016 12:46
-
-
Save davialexandre/28e95f3d17e4000ef2dc8fe5c6304fc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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