1
0
Fork 0
mirror of https://github.com/24eme/signaturepdf synced 2024-05-21 23:26:38 +02:00

Fix cookie warning

This commit is contained in:
tale-fau 2023-09-27 15:13:22 +02:00
parent 1aacd96731
commit ab7a9b3e32

View file

@ -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");
}