Class Cookie.Builder
- Namespace
 - DotNetBrowser.Cookies
 
- Assembly
 - DotNetBrowser.dll
 
A builder class to construct cookie.
public class Cookie.Builder
  - Inheritance
 - 
      
      Cookie.Builder
 
- Inherited Members
 
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.
Constructors
- Builder(string)
 Creates a new Cookie builder.
Properties
- CreationTime
 Gets or sets cookie creation time.
- DomainName
 Gets the domain name for this cookie.
- ExpirationTime
 Gets or sets cookie expiration time.
- HttpOnly
 Gets or sets the HttpOnly attribute. The
HttpOnlycookie attribute can help to mitigate hijacking and XSS attacks by preventing access to cookie value through JavaScript.
- Name
 Gets or sets the name of the cookie.
- Path
 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.
- SameSite
 Gets or sets the
SameSiteattribute value of the cookie. This attribute denotes if your cookie should be restricted to a first-party or same-site context.
- Secure
 Gets or sets the
Secureattribute value of the cookie. A secure cookie is only sent to the server with an encrypted request over the HTTPS protocol.
- Value
 Gets or sets the value of the cookie.
Methods
- Build()
 Builds an HTTP cookie.