Remove explicit naming of domain in setcookie
This commit is contained in:
1 file changed
-1
@@ -345,7 +345,6 @@ public static function get_user_lang(array $allowed_langs, string $default_lang)
|
||||
$cookie_options = [
|
||||
'expires' => self::strtotime("+1 month"),
|
||||
'path' => '/',
|
||||
'domain' => $_SERVER['SERVER_NAME'],
|
||||
'secure' => true,
|
||||
'httponly' => true,
|
||||
'samesite' => 'Lax' // None || Lax || Strict
|
||||
|
||||
Reference in new issue
Block a user