Table of Contents

Class CobaltCookie

Namespace
CobaltPdf.WebKit
Assembly
CobaltPDF.WebKit.dll

Represents a browser cookie configuration used during PDF generation.

public class CobaltCookie
Inheritance
CobaltCookie
Inherited Members

Properties

Domain

Domain scope (e.g. ".example.com"). If null, inferred from the final URL.

public string? Domain { get; set; }

Property Value

string

Expires

Expiration date. Null = session cookie.

public DateTime? Expires { get; set; }

Property Value

DateTime?

HttpOnly

Whether the cookie is inaccessible to client-side scripts. Defaults to false.

public bool HttpOnly { get; set; }

Property Value

bool

Name

Cookie name.

public required string Name { get; set; }

Property Value

string

Path

URL path. Defaults to "/".

public string? Path { get; set; }

Property Value

string

Secure

Whether the cookie is HTTPS-only. Defaults to true.

public bool Secure { get; set; }

Property Value

bool

Value

Cookie value.

public required string Value { get; set; }

Property Value

string