Cookie
class Cookie
Class Cookie
Constants
| ATTR_DOMAIN |
|
| ATTR_PATH |
|
| ATTR_SECURE |
|
| ATTR_MAX_AGE |
|
| ATTR_EXPIRES |
|
Properties
| protected | $name | ||
| protected | $value | ||
| protected | $attributes | ||
| protected | $createdAt |
Methods
Constructor.
Returns true if the current cookie matches the supplied request
Returns true of the current cookie has expired.
Returns true if the current cookie matches the supplied domain.
Returns true if the current cookie matches the supplied path.
Populates the current cookie with data from the supplied Set-Cookie header.
Formats a Cookie header for the current cookie.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Details
at line 27
__construct()
Constructor.
at line 37
bool
matchesRequest(RequestInterface $request)
Returns true if the current cookie matches the supplied request
at line 64
boolean
isExpired()
Returns true of the current cookie has expired.
Checks the max-age and expires attributes.
at line 86
boolean
matchesDomain(string $domain)
Returns true if the current cookie matches the supplied domain.
at line 106
boolean
matchesPath(string $path)
Returns true if the current cookie matches the supplied path.
at line 119
fromSetCookieHeader(string $header, string $issuingDomain)
Populates the current cookie with data from the supplied Set-Cookie header.
at line 151
string
toCookieHeader()
Formats a Cookie header for the current cookie.