From ab7a9b3e327ff48d1cf162c59b63bcb22b96bf21 Mon Sep 17 00:00:00 2001 From: tale-fau Date: Wed, 27 Sep 2023 15:13:22 +0200 Subject: [PATCH] Fix cookie warning --- app.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.php b/app.php index e193960..d8afe06 100644 --- a/app.php +++ b/app.php @@ -483,7 +483,8 @@ function selectLanguage($lang, $f3, $putCookie = false) { return null; } if($putCookie) { - setcookie("LANGUAGE", $langSupported, strtotime('+1 year')); + $cookieDate = strtotime('+1 year'); + setcookie("LANGUAGE", $langSupported, ['expires' => $cookieDate, 'samesite' => 'Strict']); } putenv("LANGUAGE=$langSupported"); }