diff --git a/app/components/Controller.php b/app/components/Controller.php index 4c1f4a8bf..d2e910e36 100755 --- a/app/components/Controller.php +++ b/app/components/Controller.php @@ -31,7 +31,8 @@ public function init() $authTimeout = Yii::app()->user->getState("authTimeout", 5*60*60); // Valor padrĂ£o de 1800 segundos (30 minutos) Yii::app()->user->authTimeout = $authTimeout; - ini_set('session.gc_maxlifetime', $authTimeout); + ini_set('session.gc_maxlifetime', value: $authTimeout); + ini_set('session.cookie_lifetime', $authTimeout); Yii::app()->sentry->setUserContext([ 'id' => Yii::app()->user->loginInfos->id,