mirror of
https://github.com/danpros/htmly.git
synced 2026-04-17 11:16:00 +05:30
Improve set cookie params
Add conditional statement. Before PHP 7.3 it only receive string
This commit is contained in:
parent
7493400b10
commit
0bc0931eff
2 changed files with 15 additions and 1 deletions
|
|
@ -222,7 +222,14 @@ if(from($_SERVER,'QUERY_STRING') == "rewriteRule.html")
|
|||
echo "YES!";
|
||||
die();
|
||||
}
|
||||
session_set_cookie_params(['samesite' => 'Strict']);
|
||||
|
||||
$samesite = 'strict';
|
||||
if(PHP_VERSION_ID < 70300) {
|
||||
session_set_cookie_params('samesite='.$samesite);
|
||||
} else {
|
||||
session_set_cookie_params(['samesite' => $samesite]);
|
||||
}
|
||||
|
||||
session_start();
|
||||
new Settings;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue