diff --git a/Services/Init/classes/class.ilStartUpGUI.php b/Services/Init/classes/class.ilStartUpGUI.php index 03f6d2c05dcf..06a586a8414a 100755 --- a/Services/Init/classes/class.ilStartUpGUI.php +++ b/Services/Init/classes/class.ilStartUpGUI.php @@ -235,6 +235,9 @@ protected function showLoginPageOrStartupPage(): void 'username' => $this->user->getLogin() ) ); + + $this->dic->user()->setId(ANONYMOUS_USER_ID); + $this->dic->user()->read(); } $this->logger->debug('Show login page'); if (isset($messages) && count($messages) > 0) {