An instance of the NSHTTPCookie class is a single,
immutable http cookie. It can be initialised with
properties from a dictionary and has accessor
methods to obtain the cookie values. The class
supports unversioned cookies (sometimes referred to
as version 0) as originally produced by netscape, as well
as more recent standardised and versioned cookies.
Returns an array of cookies parsed from the
headerFields and URL (assuming
that the headerFields came from a response
to a request sent to the URL). The
headerFields dictionary must contain at
least all the headers relevant to cookie setting...
other headers are ignored.
Returns the domain to which the cookie should be
sent. If there is a leading dot then
subdomains should also receive the cookie as
specified in RFC 2965.
Initialises the receiver with a dictionary of
properties. Unrecognised keys are
ignored. Returns nil if a
required key is missing or if an illegal value is
specified for a key.
NSHTTPCookieComment
The
NSString
comment for the cookie (if any). This
is nil by default and for unversioned
cookies.
NSHTTPCookieCommentURL
The
NSString
or
NSURL
URL to get the comment for the cookie.
This is nil by default and for
unversioned cookies.
NSHTTPCookieDomain
The
NSString
specified the domain to which the
cookie applies. This is extracted
from NSHTTPCookieOriginURL if not
specified.
NSHTTPCookieDiscard
A
NSString
(either TRUE or FALSE) saying whether
the cookie is to be discarded when the
session ends. Defaults to
FALSE except for versioned cookies
where NSHTTPCookieMaximumAge is
unspecified.
NSHTTPCookieExpires
The
NSDate
or
NSString
(format Wdy, DD-Mon-YYYY HH:MM:SS GMT) specifying when an unversioned cookie expires and ignored for versioned cookies.
NSHTTPCookieMaximumAge
An
NSString
containing an integer value specifying the longest time (in seconds) for which the cookie is valid. This defaults to zero and is only meaningful for versioned cookies.