Zend_Http_CookieZend_Http_Cookie is a class describing an HTTP cookie and all it's parameters.
Zend_Http_Cookie is a class describing an HTTP cookie and all it's parameters. The class also enables validating whether the cookie should be sent to the server in a specified scenario according to the request URI, the expiry time and whether session cookies should be used or not. Generally speaking cookies should be contained in a Cookiejar object, or instantiated manually and added to an HTTP request.
See http://wp.netscape.com/newsref/std/cookie_spec.html for some specs.
Located in /Http/Cookie.php (line 47)
static Zend_Http_Cookie
fromString
(string $cookieStr, [Zend_Uri_Http|string $refUri = null], [boolean $encodeValue = true])
Zend_Http_Cookie
__construct
(string $name, string $value, string $domain, [int $expires = null], [string $path = null], [bool $secure = false])
string
$domain
(line 75)
Cookie domain
boolean
$encodeValue
(line 96)
Whether the cookie value has been encoded/decoded
int
$expires
(line 68)
Cookie expiry date
string
$name
(line 54)
Cookie name
string
$path
(line 82)
Cookie path
boolean
$secure
(line 89)
Whether the cookie is secure or not
string
$value
(line 61)
Cookie value
static fromString (line 284)
Generate a new Cookie object from a cookie string (for example the value of the Set-Cookie HTTP header)
static matchCookieDomain (line 377)
Check if a cookie's domain matches a host name.
Used by Zend_Http_Cookie and Zend_Http_CookieJar for cookie matching
static matchCookiePath (line 410)
Check if a cookie's path matches a URL path
Used by Zend_Http_Cookie and Zend_Http_CookieJar for cookie matching
Constructor __construct (line 110)
Cookie object constructor
getDomain (line 158)
Get cookie domain
getExpiryTime (line 178)
Get the expiry time of the cookie, or null if no expiry time is set
getName (line 138)
Get Cookie name
getPath (line 168)
Get the cookie path
getValue (line 148)
Get cookie value
isExpired (line 201)
Check whether the cookie has expired
Always returns false if the cookie is a session cookie (has no expiry time)
isSecure (line 188)
Check whether the cookie should only be sent over secure connections
isSessionCookie (line 216)
Check whether the cookie is a session cookie (has no expiry time set)
match (line 229)
Checks whether the cookie should be sent or not in a specific scenario
__toString (line 266)
Get the cookie as a string, suitable for sending as a "Cookie" header in an HTTP request
Documentation generated on Mon, 21 Jun 2010 15:14:21 -0400 by phpDocumentor 1.4.3