Skip to content

Commit

Permalink
Auth: Persist session before refreshing current logged in user
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Dec 13, 2023
1 parent cd2daeb commit e3a5112
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/Icinga/Authentication/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit e3a5112

Please sign in to comment.