mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
fix samesite bug
This commit is contained in:
parent
f1bbb2abe3
commit
1badf2354b
|
|
@ -85,7 +85,14 @@ final class HttpSession implements SessionInterface
|
|||
$this->inactivityInterval = $inactivityInterval;
|
||||
|
||||
if (\session_status() !== \PHP_SESSION_ACTIVE && !\headers_sent()) {
|
||||
\session_set_cookie_params($liftetime, '/', '', false, true, ['samesite'=>'Strict']); // @codeCoverageIgnore
|
||||
\session_set_cookie_params([
|
||||
'lifetime' => $liftetime,
|
||||
'path' => '/',
|
||||
'domain' => '',
|
||||
'secure' => false,
|
||||
'httponly' => true,
|
||||
'samesite' => 'Strict',
|
||||
]); // @codeCoverageIgnore
|
||||
\session_start(); // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user