final |
---|
Validates a cookie against the RFC 6265 specification.
Methods | ||
---|---|---|
public
static
|
validateName(string $name, bool $raw): void
|
# |
public
static
|
validatePrefix(string $prefix, bool $secure, string $path, string $domain): void
|
# |
public
static
|
validatePartitioned(bool $partitioned, bool $secure, string $sameSite, string $prefix): void
|
# |
public
static
|
validateSameSite(string $sameSite, bool $secure): void
|
# |
Constants | |||
---|---|---|---|
public
|
string |
HOST_PREFIX = '__Host-'
|
# |
public
|
string |
SECURE_PREFIX = '__Secure-'
|
# |
public
|
string |
RESERVED_CHARS_LIST = "()<>@,;:\\\"/[]?={} \t\r\n\f\v"
|
# |
public
|
array |
ALLOWED_SAMESITE_VALUES = [CookieInterface::SAMESITE_NONE, CookieInterface::SAMESITE_LAX, CookieInterface::SAMESITE_STRICT]
|
# |