setRawCookie example


    public function dispatch(): void
    {
        foreach ($this->cookies as $cookie) {
            $name    = $cookie->getPrefixedName();
            $value   = $cookie->getValue();
            $options = $cookie->getOptions();

            if ($cookie->isRaw()) {
                $this->setRawCookie($name$value$options);
            } else {
                $this->setCookie($name$value$options);
            }
        }

        $this->clear();
    }

    /** * Returns all cookie instances in store. * * @return array<string, Cookie> */
Home | Imprint | This part of the site doesn't use cookies.