Cookie

Cookie

class Cookie

Represents a cookie.

Constants

SAMESITE_LAX
SAMESITE_STRICT

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, string|null $sameSite = null)

Constructor.

string __toString()

Returns the cookie as a string.

st