Click or drag to resize

Cookie Properties

The Cookie type exposes the following members.

Properties
  NameDescription
Public propertyCreationTime
Gets the cookie creation time.
Public propertyDomainName
Gets the domain name set for this cookie. It specifies allowed hosts to receive the cookie.
Public propertyExpirationTime
Gets the cookie expiration time.
Public propertyIsHttpOnly
Gets the HttpOnly attribute value of the cookie. The HttpOnly cookie attribute can help to mitigate hijacking and XSS attacks by preventing access to cookie value through JavaScript.
Public propertyIsSecure
Gets the Secure attribute value of the cookie. A secure cookie is only sent to the server with an encrypted request over the HTTPS protocol.
Public propertyIsSession
Indicates whether this cookie is a session cookie without expiration time.
Public propertyName
Gets the name of the cookie.
Public propertyPath
Gets the path on the server to which the browser returns this cookie. The cookie is visible to all sub-paths on the server.
Public propertySameSite
Gets the SameSite attribute value of the cookie. This attribute denotes if your cookie is restricted to a first-party or same-site context.
Public propertyValue
Gets the value of the cookie.
Top
See Also