__construct()
fromString()
getDomain()
getExpires()
getFieldName()
getFieldValue()
getMaxAge()
getName()
getPath()
getValue()
getVersion()
isExpired()
isHttponly()
isSecure()
isSessionCookie()
isValidForRequest()
match()
matchCookieDomain()
matchCookiePath()
setDomain()
setExpires()
setHttponly()
setMaxAge()
setName()
setPath()
setSecure()
setValue()
setVersion()
toString()
toStringMultipleHeaders()
$domain
$expires
$httponly
$maxAge
$name
$path
$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 $expires, string $path, string $domain, bool $secure, bool $httponly, string $maxAge, int $version) : \Zend\Http\Header\SetCookie
todo | Add validation of each one of the parameters (legal domain, etc.) |
---|
string
string
int
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
bool
int
getFieldName() : string
string
'Set-Cookie'getFieldValue() : string
getMaxAge() : integer
integer
getName() : string
string
getPath() : string
string
getValue() : string
string
getVersion() : integer
integer
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\Http\Header\Zend\Uri\Uri $uri, boolean $matchSessionCookies, int $now) : boolean
string\Zend\Http\Header\Zend\Uri\Uri
URI to check against (secure, domain, path)
boolean
Whether to send session cookies
int
Override the current time when checking for expiry time
boolean
matchCookieDomain(string $cookieDomain, string $host) : boolean
Used by Zend\Http\Cookies for cookie matching
string
string
boolean
matchCookiePath(string $cookiePath, string $path) : boolean
Used by Zend\Http\Cookies for cookie matching
string
string
boolean
setDomain(string $domain)
string
setExpires(int $expires) : \Zend\Http\Header\SetCookie
setHttponly(bool $httponly)
bool
setMaxAge(integer $maxAge)
setName(string $name) : \Zend\Http\Header\SetCookie
setPath(string $path)
string
setSecure(bool $secure)
bool
setValue(string $value)
string
setVersion(integer $version)
toString()
toStringMultipleHeaders(array $headers)
$domain : string
$expires : int
$httponly : bool | null
$maxAge : integer
$name : string
$path : string
$secure : bool
$value : string
$version : integer