mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-19 04:58:41 +00:00
Use setcookie options array
This commit is contained in:
parent
580db7a9d6
commit
8ae435998f
|
|
@ -98,7 +98,7 @@ final class CookieJar
|
|||
if ($overwrite || !isset($this->cookies[$id])) {
|
||||
$this->cookies[$id] = [
|
||||
'value' => $value,
|
||||
'expiry' => $expire,
|
||||
'expires' => $expire,
|
||||
'path' => $path,
|
||||
'domain' => $domain,
|
||||
'secure' => $secure,
|
||||
|
|
@ -194,7 +194,14 @@ final class CookieJar
|
|||
|
||||
// @codeCoverageIgnoreStart
|
||||
foreach ($this->cookies as $key => $cookie) {
|
||||
\setcookie($key, $cookie['value'], $cookie['expiry'], $cookie['path'], $cookie['domain'], $cookie['secure'], $cookie['httponly'], 'Strict');
|
||||
\setcookie($key, $cookie['value'], [
|
||||
'expires' => $cookie['expires'],
|
||||
'path' => $cookie['path'],
|
||||
'domain' => $cookie['domain'],
|
||||
'secure' => $cookie['secure'],
|
||||
'httponly' => $cookie['httponly'],
|
||||
'samesite' => 'Strict'
|
||||
]);
|
||||
}
|
||||
// @codeCoverageIgnoreEnd
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user