Get cookie

@access public

@param string $name cookie name

@return mixed|bool
509126
public function get($name)
    {
        $cookie = $this->request->getCookieParams();

        return array_key_exists($name, $cookie) ? $cookie[$name] : null;
    }
538246
public function getCookie($cookieName) {
        if (isset($_COOKIE[$cookieName])) {
            return $this->decodeCookie($_COOKIE[$cookieName]);
        } else {
            return false;
        }
    }
969262
public function get($name)
    {
        $this->toString = isset($_COOKIE[$name]) ? $_COOKIE[$name] : "";
        return new InputUtilities($this->toString);
    }
295687
public static function get($name)
    {
        if (!self::isExist($name)) return false;
        $value = $_COOKIE[Config::get('cookie_prefix') . $name];
        return Encry::decrypt($value);
    }
834097
public function getCookieParam($name)
    {
        return isset($this->cookies[$name]) ? $this->cookies[$name] : false;
    }
779417
public function hasCookie($name)
    {
        if (!$this->request) {
            return $this->getRequest()->hasCookie($name);
        }
        return parent::hasCookie($name);
    }
374877
protected function getKey($name)
    {
        if (empty($_COOKIE[$name])) {
            $key         = random_bytes(64); // 32 for encryption and 32 for authentication
            $cookieParam = session_get_cookie_params();
            $encKey      = base64_encode($key);
            setcookie(
                $name,
                $encKey,
                // if session cookie lifetime > 0 then add to current time
                // otherwise leave it as zero, honoring zero's special meaning
                // expire at browser close.
                ($cookieParam['lifetime'] > 0) ? time() + $cookieParam['lifetime'] : 0,
                $cookieParam['path'],
                $cookieParam['domain'],
                $cookieParam['secure'],
                $cookieParam['httponly']
            );
            $_COOKIE[$name] = $encKey;
        } else {
            $key = base64_decode($_COOKIE[$name]);
        }
        return $key;
    }
987074
public function getCookie($name)
    {
        $this->buildCookieCollection();
        if (!$this->cookies->has($name)) {
            return null;
        }

        return $this->cookies->get($name)->getValue();
    }
499948
public static function GetCookie ($name, $callback_filter = null) {
		if (is_callable($callback_filter)) {
			return $callback_filter(...($_COOKIE[$name] ?? []));
		}
		return $_COOKIE[$name] ?? null;
	}
1736
public function fetch(string $name)
    {
        if (!isset($_COOKIE[$name])) {
            return null;
        }
        try {
            /** @var string|array|int|float|bool $stored */
            $stored = $_COOKIE[$name];
            if (!\is_string($stored)) {
                throw new InvalidType('Cookie value is not a string');
            }
            $config = self::getConfig($stored);
            $decrypted = Crypto::decrypt(
                $stored,
                $this->key,
                $config->ENCODING
            );
            return \json_decode($decrypted->getString(), true);
        } catch (InvalidMessage $e) {
            return null;
        }
    }
341972
public function getCookie(string $name = null)
    {
        if ($name === null) {
            return $this->cookies;
        }

        return $this->resolvePath($this->cookies, $name);
    }
1145579
public function getCookieNamed($name)
    {
        $cookies = $this->getCookies();
        foreach ($cookies as $cookie) {
            if ($cookie['name'] === $name) {
                return $cookie;
            }
        }

        return null;
    }
383725
public function get(string $name)
    {
        if (!array_key_exists($name, $this->headers)) {
            return null;
        }

        return $this->headers[$name];
    }
1252782
public String getCookie(String name) {
		Cookie c = requestCookies.get().get(name);
		return c == null ? null : c.getValue();
	}
968612
public function getCookie($name)
    {

        $filter = $default = '';

        $cookie = $this->getVar($name, $filter, $default, "cookies");

        //@TODO cookie before return
        return empty($cookie) ? false : $cookie;
    }
523766
public function getCookie($name, $default = null)
    {
        if (!$this->request) {
            return $this->getRequest()->getCookie($name);
        }
        return parent::getCookie($name, $default);
    }
934560
public function get($name)
    {
        if (isset($this->_loaded[$name])) {
            return $this->_loaded[$name];
        }

        return null;
    }