diff --git a/components/ILIAS/Authentication/classes/class.ilAuthSession.php b/components/ILIAS/Authentication/classes/class.ilAuthSession.php index 03fe7fde7e87..9da2b11d9611 100755 --- a/components/ILIAS/Authentication/classes/class.ilAuthSession.php +++ b/components/ILIAS/Authentication/classes/class.ilAuthSession.php @@ -67,6 +67,12 @@ protected function getLogger(): ilLogger */ public function init(): bool { + if (session_status() === PHP_SESSION_ACTIVE) { + $this->getLogger()->error(__METHOD__ . ' called with active session.'); + $this->getLogger()->logStack(ilLogLevel::ERROR); + return false; + } + session_start(); $this->setId(session_id());