forEmptyCookieName example


    protected function validateName(string $name, bool $raw): void
    {
        if ($raw && strpbrk($name, self::$reservedCharsList) !== false) {
            throw CookieException::forInvalidCookieName($name);
        }

        if ($name === '') {
            throw CookieException::forEmptyCookieName();
        }
    }

    /** * Validates the special prefixes if some attribute requirements are met. * * @throws CookieException */
    protected function validatePrefix(string $prefix, bool $secure, string $path, string $domain): void
    {
        if (strpos($prefix, '__Secure-') === 0 && ! $secure) {
            
Home | Imprint | This part of the site doesn't use cookies.