Skip to content

Commit d506d71

Browse files
committed
Auth: Persist session before refreshing current logged in user
1 parent a1cd968 commit d506d71

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

library/Icinga/Authentication/Auth.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,9 @@ public function hasPermission($permission)
326326
*/
327327
public function persistCurrentUser()
328328
{
329-
// @TODO(el): https://dev.icinga.com/issues/10646
329+
// Persist the Icinga Web session beforehand, otherwise, session_get_cookie_params() won't get any of the
330+
// configured cookie data in the [cookie] INI section e.g path "/" or domain "icinga.com".
331+
Session::getSession()->write();
330332
$params = session_get_cookie_params();
331333
setcookie(
332334
'icingaweb2-session',

0 commit comments

Comments
 (0)