Cookie

Cookie

class Cookie

Represents a cookie.

Methods

__construct(string $name, string $value = null, int|string|DateTimeInterface $expire, string $path = '/', string $domain = null, bool $secure = false, bool $httpOnly = true, bool $raw = false)

Constructor.

string __toString()

Returns the cookie as a string.

string getName()

Gets the name of the cookie.

string|null getValue()

Gets the value of the co