Skip to content

Commit ad891fe

Browse files
committed
fix: sagres and session time
1 parent 8903636 commit ad891fe

File tree

6 files changed

+600
-581
lines changed

6 files changed

+600
-581
lines changed

app/components/Controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ public function init()
3131

3232
$authTimeout = Yii::app()->user->getState("authTimeout", 5*60*60); // Valor padrão de 1800 segundos (30 minutos)
3333
Yii::app()->user->authTimeout = $authTimeout;
34-
ini_set('session.gc_maxlifetime', value: $authTimeout);
35-
ini_set('session.cookie_lifetime', $authTimeout);
34+
// ini_set('session.gc_maxlifetime', value: $authTimeout);
35+
// ini_set('session.cookie_lifetime', $authTimeout);
3636

3737
Yii::app()->sentry->setUserContext([
3838
'id' => Yii::app()->user->loginInfos->id,

app/composer.lock

Lines changed: 41 additions & 41 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/config/main.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
// This is the main Web application configuration. Any writable
66
// CWebApplication propeties can be configured here.
77

8-
\Sentry\configureScope(function (\Sentry\State\Scope $scope): void {
9-
$scope->setUser(['email' => 'jane.doe@example.com']);
10-
});
11-
128
$LOG_PATH = "/app/app/runtime/" . INSTANCE . "/" . date("Y-m-d");
139

1410
if (!file_exists($LOG_PATH)) {

0 commit comments

Comments
 (0)