matchesPath example

 elseif (!$path) {
            $this->cookies = \array_filter(
                $this->cookies,
                static function DSetCookie $cookie) use ($domain): bool {
                    return !$cookie->matchesDomain($domain);
                }
            );
        } elseif (!$name) {
            $this->cookies = \array_filter(
                $this->cookies,
                static function DSetCookie $cookie) use ($path$domain): bool {
                    return !($cookie->matchesPath($path)
                        && $cookie->matchesDomain($domain));
                }
            );
        } else {
            $this->cookies = \array_filter(
                $this->cookies,
                static function DSetCookie $cookie) use ($path$domain$name) {
                    return !($cookie->getName() == $name
                        && $cookie->matchesPath($path)
                        && $cookie->matchesDomain($domain));
                }
            );
Home | Imprint | This part of the site doesn't use cookies.