Skip to content

Instantly share code, notes, and snippets.

@davialexandre
Created November 15, 2016 12:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davialexandre/28e95f3d17e4000ef2dc8fe5c6304fc4 to your computer and use it in GitHub Desktop.
Save davialexandre/28e95f3d17e4000ef2dc8fe5c6304fc4 to your computer and use it in GitHub Desktop.
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