fix: [internal] ECS session start

pull/9473/head
Jakub Onderka 2024-01-03 18:09:39 +01:00
parent 775d098ff8
commit 3aa078d9bc
1 changed files with 2 additions and 2 deletions

View File

@ -338,8 +338,8 @@ class EcsLog implements CakeLogInterface
];
}
}
} else {
} else if (session_status() === PHP_SESSION_ACTIVE) {
// include session data just when session is active to avoid unnecessary session starting
App::uses('AuthComponent', 'Controller/Component');
$authUser = AuthComponent::user();
if (!empty($authUser)) {