System.Web 1.0.5000.0 2.0.0.0 Gtk# is thread aware, but not thread safe; See the <link location="node:gtk-sharp/programming/threads">Gtk# Thread Programming</link> for details. System.Object

The class gets and sets properties of individual cookies. The class provides methods to store, retrieve, and manage multiple cookies.

ASP.NET includes two intrinsic cookie collections. The collection accessed through the collection of the object contains cookies transmitted by the client to the server in the Cookie header. The collection accessed through the collection of the object contains new cookies created on the server and transmitted to the client in the Set-Cookie HTTP response header.

Provides a type-safe way to create and manipulate individual HTTP cookies.

- Constructor
  The cookie is created with an empty value ("").

  Creates and names a new cookie.

  The name of the new cookie.
  1.0.5000.0
  2.0.0.0
- Constructor
  Creates a cookie with the given name and value.

  Creates, names, and assigns a value to a new cookie.

  The name of the new cookie.
  The value of the new cookie.
  1.0.5000.0
  2.0.0.0
- Property
  System.String The current value of the domain. The default value is null.

  Setting the Domain attribute limits transmission of the cookie to clients requesting a resource from that domain.

  Gets or sets the domain to associate the cookie with.

  1.0.5000.0
  2.0.0.0
- Property
  System.DateTime The time and day when when the cookie will expire on the client. If this property isn't set, its value should be set to System.DateTime.MinValue, meaning that the cookie will expire as soon as the browser closes.

  Gets or sets the expiration date and time for the cookie.

  1.0.5000.0
  2.0.0.0
- Property
  System.Boolean To be added: an object of type 'bool' To be added

  Gets a value indicating whether a cookie has subkeys.

  1.0.5000.0
  2.0.0.0
- Property
  2.0.0.0
  System.Boolean To be added.

  Microsoft Internet Explorer version 6 Service Pack 1 and later supports a cookie property, , that can help mitigate cross-site scripting threats that result in stolen cookies. Stolen cookies can contain sensitive information identifying the user to the site, such as the ASP.NET session ID or forms authentication ticket, and can be replayed by the attacker in order to masquerade as the user or obtain sensitive information. When an HttpOnly cookie is received by a compliant browser, it is inaccessible to client-side script.

  Setting the property to true does not prevent an attacker with access to the network channel from accessing the cookie directly. Consider using Secure Sockets Layer (SSL) to help protect against this. Workstation security is also important, as a malicious user could use an open browser window or a computer containing persistent cookies to obtain access to a Web site with a legitimate user's identity.

  For more information on possible attacks and how this property can help mitigate them, see Mitigating Cross-site Scripting With HTTP-only Cookies.

  Gets or sets a value that specifies whether a cookie is accessible by client-side script.

- Property
  System.String `` To be added: an object of type 'string' To be added To be added: an object of type 'string' To be added 1.0.5000.0 2.0.0.0
- Property
  System.String The cookie name. Sets and resets the name of the cookie.

  Gets or sets the name of a cookie.

  1.0.5000.0
  2.0.0.0
- Property
  System.String The current path value, by default it is "/".

  The property extends the property to completely describe the specific URL to which the cookie applies. For example, in the URL http:/www.microsoft.com/asp, the domain is www.microsoft.com and the path is /asp.

  Gets or sets the virtual path to transmit with the current cookie.

  1.0.5000.0
  2.0.0.0
- Property
  System.Boolean True if the value was transmited over a secure connection.

  To set the transmission of cookies using SSL for an entire application, enable it in the application's configuration file, Web.config, which resides in the root directory of the application. For more information, see httpCookies Element (ASP.NET Settings Schema). Values set programmatically using the property override values set in the Web.config file.

  When dealing with sensitive information, it is strongly recommended that you use HTTPS protocol with SSL encryption. SSL protects against data being altered (data integrity), protects a user's identity (confidentiality), and assures that data originates from the expected client (authentication). For more information on the benefits of encryption, see Cryptography Overview. For more information about configuring SSL on an Internet Information Services (IIS) Web server, see Configuring SSL on a Web Server or a Web Site.

  Gets or sets a value indicating whether to transmit the cookie using Secure Sockets Layer (SSL)--that is, over HTTPS only.

  1.0.5000.0
  2.0.0.0
- Property
  System.String The current value stored in the cookie. The current cookie value, this does not include any other properties, for those you must use the property accessors.

  Gets or sets an individual cookie value.

  1.0.5000.0
  2.0.0.0
- Property
  System.Collections.Specialized.NameValueCollection a To be added

  Gets a collection of key/value pairs that are contained within a single cookie object.

  1.0.5000.0
  2.0.0.0