CookieRemoveHandler example

$cookieGroupCollection = unserialize(base64_decode($cookieGroupResponseHeader),
            [
                'allowed_classes' => [
                    CookieGroupCollection::class,
                    CookieCollection::class,
                    CookieGroupStruct::class,
                    CookieStruct::class,
                ],
            ]
        );

        $cookieRemoveHandler = new CookieRemoveHandler($cookieGroupCollection);
        $cookieRemoveHandler->removeCookiesFromPreferences($request$response);

        return $response;
    }
}
Home | Imprint | This part of the site doesn't use cookies.