mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-14 07:28:41 +00:00
make cookies strict
This commit is contained in:
parent
30a8fe202e
commit
f1bbb2abe3
|
|
@ -194,7 +194,7 @@ final class CookieJar
|
|||
|
||||
// @codeCoverageIgnoreStart
|
||||
foreach ($this->cookies as $key => $cookie) {
|
||||
\setcookie($key, $cookie['value'], $cookie['expiry'], $cookie['path'], $cookie['domain'], $cookie['secure'], $cookie['httponly']);
|
||||
\setcookie($key, $cookie['value'], $cookie['expiry'], $cookie['path'], $cookie['domain'], $cookie['secure'], $cookie['httponly'], ['samesite'=>'Strict']);
|
||||
}
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ final class HttpSession implements SessionInterface
|
|||
$this->inactivityInterval = $inactivityInterval;
|
||||
|
||||
if (\session_status() !== \PHP_SESSION_ACTIVE && !\headers_sent()) {
|
||||
\session_set_cookie_params($liftetime, '/', '', false, true); // @codeCoverageIgnore
|
||||
\session_set_cookie_params($liftetime, '/', '', false, true, ['samesite'=>'Strict']); // @codeCoverageIgnore
|
||||
\session_start(); // @codeCoverageIgnore
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user