$this->
save();
} /**
* Save cookies to the client session
*/
public function save(): void
{ $json =
[];
/** @var SetCookie $cookie */
foreach ($this as $cookie) { if (CookieJar::
shouldPersist($cookie,
$this->storeSessionCookies
)) { $json[] =
$cookie->
toArray();
} } $_SESSION[$this->sessionKey
] = \
json_encode($json);
} /**
* Load the contents of the client session into the data array
*/
protected function load(): void
{