mirror of
https://github.com/24eme/signaturepdf
synced 2024-06-03 14:32:13 +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;
|
return null;
|
||||||
}
|
}
|
||||||
if($putCookie) {
|
if($putCookie) {
|
||||||
setcookie("LANGUAGE", $langSupported, strtotime('+1 year'));
|
$cookieDate = strtotime('+1 year');
|
||||||
|
setcookie("LANGUAGE", $langSupported, ['expires' => $cookieDate, 'samesite' => 'Strict']);
|
||||||
}
|
}
|
||||||
putenv("LANGUAGE=$langSupported");
|
putenv("LANGUAGE=$langSupported");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue