Skip to content

Commit

Permalink
fix: sagres and session time
Browse files Browse the repository at this point in the history
  • Loading branch information
igorgoncalves committed Nov 25, 2024
1 parent 8903636 commit ad891fe
Show file tree
Hide file tree
Showing 6 changed files with 600 additions and 581 deletions.
4 changes: 2 additions & 2 deletions app/components/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +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', value: $authTimeout);
ini_set('session.cookie_lifetime', $authTimeout);
// ini_set('session.gc_maxlifetime', value: $authTimeout);
// ini_set('session.cookie_lifetime', $authTimeout);

Yii::app()->sentry->setUserContext([
'id' => Yii::app()->user->loginInfos->id,
Expand Down
82 changes: 41 additions & 41 deletions app/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions app/config/main.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
// This is the main Web application configuration. Any writable
// CWebApplication propeties can be configured here.

\Sentry\configureScope(function (\Sentry\State\Scope $scope): void {
$scope->setUser(['email' => 'jane.doe@example.com']);
});

$LOG_PATH = "/app/app/runtime/" . INSTANCE . "/" . date("Y-m-d");

if (!file_exists($LOG_PATH)) {
Expand Down
Loading

0 comments on commit ad891fe

Please sign in to comment.