Documentation

Cookie
in package

Tags
see
https://datatracker.ietf.org/doc/html/rfc6265#section-4.1

Table of Contents

Constants

RESERVED_CHARACTERS  = ["\t", "\n", "\v", "\f", "\r", "\x0e", ' ', ',', ';', '=']

Properties

$domain  : string|null
$expiry  : DateTimeInterface|null
$httpOnly  : bool
$maxAge  : int
$name  : string
$path  : string|null
$sameSite  : string|null
$secure  : bool
$value  : string

Methods

__construct()  : mixed
__toString()  : string
withDomain()  : static
withExpiry()  : static
withHttpOnly()  : static
withNameAndValue()  : static
withPath()  : static
withSameSite()  : static
withSecure()  : static

Constants

RESERVED_CHARACTERS

public mixed RESERVED_CHARACTERS = ["\t", "\n", "\v", "\f", "\r", "\x0e", ' ', ',', ';', '=']

Properties

$domain

protected string|null $domain = null

$expiry

protected DateTimeInterface|null $expiry = null

$httpOnly

protected bool $httpOnly = false

$maxAge

protected int $maxAge = 0

$path

protected string|null $path = null

$sameSite

protected string|null $sameSite = null

$secure

protected bool $secure = false

Methods

__construct()

public __construct(string $name[, string|null $value = null ]) : mixed
Parameters
$name : string
$value : string|null = null

__toString()

public __toString() : string
Return values
string

        
On this page

Search results