__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
stringgetExpires(bool $inSeconds) : int
bool
intgetFieldName() : string
string'Set-Cookie'getFieldValue() : string
getMaxAge() : integer
integergetName() : string
stringgetPath() : string
stringgetValue() : string
stringgetVersion() : integer
integerisExpired(int $now) : bool
Always returns false if the cookie is a session cookie (has no expiry time)
intTimestamp to consider as "now"
boolisHttponly() : bool
boolisSecure() : bool
boolisSessionCookie() : bool
boolisValidForRequest($requestDomain, $path, $isSecure)
match(string | \Zend\Http\Header\Zend\Uri\Uri $uri, boolean $matchSessionCookies, int $now) : boolean
string\Zend\Http\Header\Zend\Uri\UriURI to check against (secure, domain, path)
booleanWhether to send session cookies
intOverride the current time when checking for expiry time
booleanmatchCookieDomain(string $cookieDomain, string $host) : boolean
Used by Zend\Http\Cookies for cookie matching
string
string
booleanmatchCookiePath(string $cookiePath, string $path) : boolean
Used by Zend\Http\Cookies for cookie matching
string
string
booleansetDomain(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