diff --git a/library/Icinga/Authentication/Auth.php b/library/Icinga/Authentication/Auth.php index f358eac37e..f37b4e165a 100644 --- a/library/Icinga/Authentication/Auth.php +++ b/library/Icinga/Authentication/Auth.php @@ -326,7 +326,9 @@ public function hasPermission($permission) */ public function persistCurrentUser() { - // @TODO(el): https://dev.icinga.com/issues/10646 + // Persist the Icinga Web session beforehand, otherwise, session_get_cookie_params() won't get any of the + // configured cookie data in the [cookie] INI section e.g path "/" or domain "icinga.com". + Session::getSession()->write(); $params = session_get_cookie_params(); setcookie( 'icingaweb2-session',