SAMESITE_NONE
SAMESITE_NONE = 'none'
Represents a cookie.
create(string $name, string $value = null, mixed $expire, ?string $path = '/', string $domain = null, bool $secure = null, bool $httpOnly = true, bool $raw = false, ?string $sameSite = self::SAMESITE_LAX) : self
string | $name | |
string | $value | |
mixed | $expire | |
?string | $path | |
string | $domain | |
bool | $secure | |
bool | $httpOnly | |
bool | $raw | |
?string | $sameSite |
__construct(string $name, string|null $value = null, int|string|\DateTimeInterface $expire, string|null $path = '/', string|null $domain = null, bool|null $secure = null, bool $httpOnly = true, bool $raw = false, string|null $sameSite = 'lax') : mixed
string | $name | The name of the cookie |
string|null | $value | The value of the cookie |
int|string|\DateTimeInterface | $expire | The time the cookie expires |
string|null | $path | The path on the server in which the cookie will be available on |
string|null | $domain | The domain that the cookie is available to |
bool|null | $secure | Whether the client should send back the cookie only over HTTPS or null to auto-enable this when the request is already using HTTPS |
bool | $httpOnly | Whether the cookie will be made accessible only through the HTTP protocol |
bool | $raw | Whether the cookie value should be sent with no url encoding |
string|null | $sameSite | Whether the cookie will be available for cross-site requests |