Fixes Bug where cookie_samesite wasn't set
这个提交包含在:
父节点
bc7749dbed
当前提交
9c286d8a0d
共有 1 个文件被更改,包括 7 次插入 和 1 次删除
|
|
@ -150,6 +150,12 @@ abstract class CI_Session_driver implements SessionHandlerInterface {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isset($this->_config['cookie_samesite'])) {
|
||||||
|
$css=$this->_config['cookie_samesite'];
|
||||||
|
} else {
|
||||||
|
$css=TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
return setcookie(
|
return setcookie(
|
||||||
$this->_config['cookie_name'],
|
$this->_config['cookie_name'],
|
||||||
'',
|
'',
|
||||||
|
|
@ -159,7 +165,7 @@ abstract class CI_Session_driver implements SessionHandlerInterface {
|
||||||
'domain' => $this->_config['cookie_domain'],
|
'domain' => $this->_config['cookie_domain'],
|
||||||
'secure' => $this->_config['cookie_secure'],
|
'secure' => $this->_config['cookie_secure'],
|
||||||
'httponly' => TRUE,
|
'httponly' => TRUE,
|
||||||
'samesite' => $this->_config['cookie_samesite']
|
'samesite' => $css
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用