foreach ($request->cookies->
keys() as $cookieName) { if (str_starts_with($cookieName, 'session-'
)) { $response->headers->
remove('link'
);
return;
} } } private function handleCookies(Request
$request, Response
$response): Response
{ $response =
$this->
removeCookies($request,
$response);
$response->headers->
remove(CookieRemoveHandler::COOKIE_CONFIG_KEY
);
$response->headers->
remove(CookieRemoveHandler::COOKIE_GROUP_COLLECTION_KEY
);
return $response;
} private function removeCookies(Request
$request, Response
$response): Response
{ $allowCookie =
$request->cookies->
getInt('allowCookie'
);