Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Froxlor/Froxlor
Browse files Browse the repository at this point in the history
  • Loading branch information
d00p committed Jan 26, 2023
2 parents 0a36391 + b23d5cd commit d854e8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Froxlor/UI/Panel/UI.php
Expand Up @@ -95,7 +95,7 @@ public static function sendHeaders()
session_set_cookie_params([
'lifetime' => self::$install_mode ? 7200 : 600, // will be renewed based on settings in lib/init.php
'path' => '/',
'domain' => $_SERVER['SERVER_NAME'],
'domain' => explode(':', $_SERVER['HTTP_HOST'])[0],
'secure' => self::requestIsHttps(),
'httponly' => true,
'samesite' => 'Strict'
Expand Down
2 changes: 1 addition & 1 deletion lib/init.php
Expand Up @@ -332,7 +332,7 @@
$cookie_params = [
'expires' => time() + Settings::Get('session.sessiontimeout'),
'path' => '/',
'domain' => $_SERVER['SERVER_NAME'],
'domain' => explode(':', $_SERVER['HTTP_HOST'])[0],
'secure' => UI::requestIsHttps(),
'httponly' => true,
'samesite' => 'Strict'
Expand Down

0 comments on commit d854e8e

Please sign in to comment.