cookie.php文件代码修改
if ($config['setcookie']) {
if(version_compare(PHP_VERSION, '7.3.0', '>=')){
setcookie($name,$value,[
'expires'=>$expire,
'path'=>$config['path'],
'domain'=>$config['domain'],
'secure'=>$config['secure'],
'httponly'=>$config['httponly'],
'samesite'=>$config['samesite'],
]);
}else{
setcookie($name, $value, $expire, $config['path'], $config['domain'],
$config['secure'], $config['httponly']);
}
}
cookie.php文件代码修改
ini_set('session.cookie_samesite', 'None;Secure');