mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 02:14:13 +00:00
Fixes Bug where cookie_samesite wasn't set
This commit is contained in:
@@ -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
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user