Class CobaltCookie
- Namespace
- CobaltPdf
- Assembly
- CobaltPdf.dll
Represents a browser cookie configuration used during the PDF generation process.
public class CobaltCookie
- Inheritance
-
CobaltCookie
- Inherited Members
Properties
Domain
Gets or sets the domain scope of the cookie (e.g., ".example.com"). If null or empty, the domain will be inferred from the final URL after any redirects.
public string? Domain { get; set; }
Property Value
Expires
Gets or sets the expiration date and time of the cookie. If null, the cookie expires when the session ends.
public DateTime? Expires { get; set; }
Property Value
HttpOnly
Gets or sets a value indicating whether the cookie is inaccessible to client-side scripts. Defaults to false.
public bool HttpOnly { get; set; }
Property Value
Name
Gets or sets the name of the cookie.
public string Name { get; set; }
Property Value
Path
Gets or sets the URL path that must exist in the requested resource to send the Cookie header. Defaults to "/".
public string? Path { get; set; }
Property Value
Secure
Gets or sets a value indicating whether the cookie is transmitted over HTTPS only. Defaults to true.
public bool Secure { get; set; }
Property Value
Value
Gets or sets the value of the cookie.
public string Value { get; set; }