Merge pull request #2626 from int2001/cookie_fix

Fixes Bug where cookie_samesite wasn't set
这个提交包含在:
Andreas Kristiansen 2023-10-26 10:43:57 +02:00 提交者 GitHub
当前提交 f0c556c6b5
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23

查看文件

@ -150,6 +150,12 @@ abstract class CI_Session_driver implements SessionHandlerInterface {
return;
}
if (isset($this->_config['cookie_samesite'])) {
$css=$this->_config['cookie_samesite'];
} else {
$css=TRUE;
}
return setcookie(
$this->_config['cookie_name'],
'',
@ -159,7 +165,7 @@ abstract class CI_Session_driver implements SessionHandlerInterface {
'domain' => $this->_config['cookie_domain'],
'secure' => $this->_config['cookie_secure'],
'httponly' => TRUE,
'samesite' => $this->_config['cookie_samesite']
'samesite' => $css
)
);
}