Cookie

Cookie

class Cookie

Cookie represents an HTTP cookie.

Methods

__construct(string $name, string $value, string $expires = null, string $path = null, string $domain = '', bool $secure = false, bool $httponly = true, bool $encodedValue = false)

Sets a cookie.

string __toString()

Returns the HTTP representation of the Cookie.

static Cookie fromString(string $cookie, string $url = null)

Creates a Cookie instance from a Set-Cookie header value.

string getName()

Gets