Click or drag to resize

CookieBuilder Class

A builder class to construct cookie.
Inheritance Hierarchy
SystemObject
  DotNetBrowser.CookiesCookieBuilder

Namespace:  DotNetBrowser.Cookies
Assembly:  DotNetBrowser (in DotNetBrowser.dll) Version: 2.23.0
Syntax
C#
public class Builder

The CookieBuilder type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCreationTime
Gets or sets cookie creation time.
Public propertyDomainName
Gets the domain name for this cookie.
Public propertyExpirationTime
Gets or sets cookie expiration time.
Public propertyHttpOnly
Gets or sets the HttpOnly attribute. The HttpOnly cookie attribute can help to mitigate hijacking and XSS attacks by preventing access to cookie value through JavaScript.
Public propertyName
Gets or sets the name of the cookie.
Public propertyPath
Gets or sets 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 or sets the SameSite attribute value of the cookie. This attribute denotes if your cookie should be restricted to a first-party or same-site context.
Public propertySecure
Gets or sets 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 propertyValue
Gets or sets the value of the cookie.
Top
Methods
  NameDescription
Public methodBuild
Builds an HTTP cookie.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks
Each of the properties modifies the state of the builder. Builders are not thread-safe and should not be used concurrently from multiple threads without external synchronization.
See Also