Cookie represents an HTTP cookie.
Methods | ||
---|---|---|
public
|
__construct(
string $name,
string|null $value,
string|null $expires = null,
string|null $path = null,
string $domain = '',
bool $secure = false,
bool $httponly = true,
bool $encodedValue = false,
string|null $samesite = null,
)
|
# |
public
|
__toString(): string
|
# |
public
static
|
fromString(string $cookie, ?string $url = null): static
|
# |
public
|
getName(): string
|
# |
public
|
getValue(): string
|
# |
public
|
getRawValue(): string
|
# |
public
|
getExpiresTime(): string|null
|
# |
public
|
getPath(): string
|
# |
public
|
getDomain(): string
|
# |
public
|
isSecure(): bool
|
# |
public
|
isHttpOnly(): bool
|
# |
public
|
isExpired(): bool
|
# |
public
|
getSameSite(): ?string
|
# |
Properties | |||
---|---|---|---|
protected
|
|
$name
|
# |
protected
|
|
$value
|
# |
protected
|
|
$expires
|
# |
protected
|
|
$path
|
# |
protected
|
|
$domain
|
# |
protected
|
|
$secure
|
# |
protected
|
|
$httponly
|
# |
protected
|
|
$rawValue
|
# |