__construct()
fromString()
getDomain()
getExpires()
getFieldName()
getFieldValue()
getMaxAge()
getName()
getPath()
getValue()
getVersion()
hasQuoteFieldValue()
isExpired()
isHttponly()
isSecure()
isSessionCookie()
isValidForRequest()
match()
matchCookieDomain()
matchCookiePath()
setDomain()
setExpires()
setHttponly()
setMaxAge()
setName()
setPath()
setQuoteFieldValue()
setSecure()
setValue()
setVersion()
toString()
toStringMultipleHeaders()
$domain
$expires
$httponly
$maxAge
$name
$path
$quoteFieldValue
$secure
$value
$version
\Zend\Http\Header\Exception\InvalidArgumentException |
|
---|---|
see | \Zend\Http\Header\http://www.ietf.org/rfc/rfc2109.txt |
see | \Zend\Http\Header\http://www.w3.org/Protocols/rfc2109/rfc2109 |
__construct(string $name, string $value, int | string | \DateTime $expires, string $path, string $domain, bool $secure, bool $httponly, string $maxAge, int $version)
todo | Add validation of each one of the parameters (legal domain, etc.) |
---|
string
string
intstring\DateTime
string
string
bool
bool
string
int
fromString($headerLine, bool $bypassHeaderFieldName) : array | \Zend\Http\Header\SetCookie
static |
---|
bool
\Zend\Http\Header\Exception\InvalidArgumentException |
---|
getDomain() : string
string
getExpires(bool $inSeconds) : int | string
bool
int
string
getFieldName() : string
string
'Set-Cookie'getFieldValue() : string
getMaxAge() : int
int
getName() : string
string
getPath() : string
string
getValue() : string
string
getVersion() : int
int
hasQuoteFieldValue() : bool
bool
isExpired(int $now) : bool
Always returns false if the cookie is a session cookie (has no expiry time)
int
Timestamp to consider as "now"
bool
isHttponly() : bool
bool
isSecure() : bool
bool
isSessionCookie() : bool
bool
isValidForRequest($requestDomain, $path, $isSecure)
match(string | \Zend\Uri\Uri $uri, bool $matchSessionCookies, int $now) : bool
bool
Whether to send session cookies
int
Override the current time when checking for expiry time
\Zend\Http\Header\Exception\InvalidArgumentException |
If URI does not have HTTP or HTTPS scheme. |
---|
bool
matchCookieDomain(string $cookieDomain, string $host) : bool
Used by Zend\Http\Cookies for cookie matching
string
string
bool
matchCookiePath(string $cookiePath, string $path) : bool
Used by Zend\Http\Cookies for cookie matching
string
string
bool
setExpires(int | string | \DateTime $expires) : \Zend\Http\Header\self
intstring\DateTime
\Zend\Http\Header\Exception\InvalidArgumentException |
---|
\Zend\Http\Header\self
setMaxAge(int $maxAge) : \Zend\Http\Header\SetCookie
setName(string $name) : \Zend\Http\Header\SetCookie
setQuoteFieldValue(bool $quotedValue) : \Zend\Http\Header\SetCookie
setVersion(int $version) : \Zend\Http\Header\SetCookie
toString()
toStringMultipleHeaders(array $headers)
$domain : string | null
$expires : int | null
$httponly : bool | null
$maxAge : int | null
$name : string | null
$path : string | null
$quoteFieldValue : bool
$secure : bool | null
$value : string | null
$version : int | null