Remove explicit naming of domain in setcookie

This commit is contained in:
jrenslin committed 2021-05-15 15:37:05 +02:00
1 parent a06a6ed41d
commit 980c408631
1 file changed
-1
-1
View File
@@ -345,7 +345,6 @@ public static function get_user_lang(array $allowed_langs, string $default_lang)
$cookie_options = [ $cookie_options = [
'expires' => self::strtotime("+1 month"), 'expires' => self::strtotime("+1 month"),
'path' => '/', 'path' => '/',
'domain' => $_SERVER['SERVER_NAME'],
'secure' => true, 'secure' => true,
'httponly' => true, 'httponly' => true,
'samesite' => 'Lax' // None || Lax || Strict 'samesite' => 'Lax' // None || Lax || Strict