Click or drag to resize

Cookie Class

Version 130.1.90
Class used to Represent a cookie. The built in .Net Cookie class isn't used as some of it's properties have internal setters
Inheritance Hierarchy
SystemObject
  CefSharpCookie

Namespace: CefSharp
Assembly: CefSharp (in CefSharp.dll) Version: 129.0.110.0 (129.0.110.0)
Syntax
public sealed class Cookie

The Cookie type exposes the following members.

Constructors
 NameDescription
Public methodCookieInitializes a new instance of the Cookie class
Top
Properties
 NameDescription
Public propertyCreation The cookie creation date. This is automatically populated by the system on cookie creation.
Public propertyDomain If domain is empty a host cookie will be created instead of a domain cookie. Domain cookies are stored with a leading "." and are visible to sub-domains whereas host cookies are not.
Public propertyExpires Expires or null if no expiry
Public propertyHttpOnly Ss true the cookie will only be sent for HTTP requests.
Public propertyLastAccess The cookie last access date. This is automatically populated by the system on access.
Public propertyName The cookie name
Public propertyPath Ss non-empty only URLs at or below the path will get the cookie value.
Public propertyPriority Priority
Public propertySameSite Same site.
Public propertySecure If true the cookie will only be sent for HTTPS requests.
Public propertyValue The cookie value.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodSetCreationDate Used internally to set Creation. Creation can only be set when fecting a Cookie from Chromium
Public methodSetLastAccessDate Used internally to set LastAccess. LastAccess can only be set when fecting a Cookie from Chromium
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also