Skip to content

Commit

Permalink
Fix cookie warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tale-fau committed Sep 27, 2023
1 parent 1aacd96 commit ab7a9b3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.php
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit ab7a9b3

Please sign in to comment.