mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-08 21:28:40 +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;
|
$this->inactivityInterval = $inactivityInterval;
|
||||||
|
|
||||||
if (\session_status() !== \PHP_SESSION_ACTIVE && !\headers_sent()) {
|
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
|
\session_start(); // @codeCoverageIgnore
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user