|
@@ -24,7 +24,7 @@ if (!function_exists('PutCookie')) { |
|
|
global $cfg_cookie_encode, $cfg_domain_cookie;
|
|
|
global $cfg_cookie_encode, $cfg_domain_cookie;
|
|
|
if (version_compare(PHP_VERSION, '7.3.0', '>=')) {
|
|
|
if (version_compare(PHP_VERSION, '7.3.0', '>=')) {
|
|
|
$options = array(
|
|
|
$options = array(
|
|
|
"expires"=>time() + $kptime,
|
|
|
|
|
|
|
|
|
"expires" => time() + $kptime,
|
|
|
'path' => $pa,
|
|
|
'path' => $pa,
|
|
|
'domain' => $cfg_domain_cookie,
|
|
|
'domain' => $cfg_domain_cookie,
|
|
|
'samesite' => 'None',
|
|
|
'samesite' => 'None',
|
|
@@ -50,7 +50,7 @@ if (!function_exists('DropCookie')) { |
|
|
global $cfg_domain_cookie;
|
|
|
global $cfg_domain_cookie;
|
|
|
if (version_compare(PHP_VERSION, '7.3.0', '>=')) {
|
|
|
if (version_compare(PHP_VERSION, '7.3.0', '>=')) {
|
|
|
$options = array(
|
|
|
$options = array(
|
|
|
"expires"=>time() - 360000,
|
|
|
|
|
|
|
|
|
"expires" => time() - 360000,
|
|
|
'path' => "/",
|
|
|
'path' => "/",
|
|
|
'domain' => $cfg_domain_cookie,
|
|
|
'domain' => $cfg_domain_cookie,
|
|
|
'samesite' => 'None',
|
|
|
'samesite' => 'None',
|
|
|