Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

Cookie Members

Provides a set of properties and methods that are used to manage cookies. This class cannot be inherited.

The following tables list the members exposed by the Cookie type.

  Name Description
Public method Cookie Overloaded. Initializes a new instance of the Cookie class, conforming to the Netscape specification. In general, an application does not need to construct a Cookie class because it is created automatically based on the Set-Cookie header received with the HTTP response.
Top
  Name Description
Public property Comment Gets or sets a comment that the server can add to a Cookie.
Public property CommentUri Gets or sets a URI comment that the server can provide with a Cookie.
Public property Discard Gets or sets the discard flag set by the server.
Public property Domain Gets or sets the URI for which the Cookie is valid.
Public property Expired Gets or sets the current state of the Cookie.
Public property Expires Gets or sets the expiration date and time for the Cookie as a DateTime.
Public property HttpOnly Determines whether a page script or other active content can access this cookie.
Public property Name Gets or sets the name for the Cookie.
Public property Path Gets or sets the URIs to which the Cookie applies.
Public property Port Gets or sets a list of TCP ports that the Cookie applies to.
Public property Secure Gets or sets the security level of a Cookie.
Public property TimeStamp Gets the time when the cookie was issued as a DateTime.
Public property Value Gets or sets the Value for the Cookie.
Public property Version Gets or sets the version of HTTP state maintenance to which the cookie conforms.
Top
(see also Protected Methods )
  Name Description
Public method Equals Overloaded. Overridden.  
Public method GetHashCode Overridden. Overrides the Object.GetHashCode method.
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method ToString Overridden. Overrides the Object.ToString method.
Top
  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.