mirror of
https://github.com/24eme/signaturepdf
synced 2024-05-21 23:26:38 +02:00
Fix cookie warning
This commit is contained in:
parent
1aacd96731
commit
ab7a9b3e32
3
app.php
3
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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue