Table of Contents

Class CookieData

Namespace
PuppeteerSharp
Assembly
PuppeteerSharp.dll

Cookie parameter object used to set cookies in the browser-level cookies API.

public class CookieData
Inheritance
CookieData

Properties

Domain

Gets or sets the domain.

public string Domain { get; set; }

Property Value

string

Expires

Gets or sets the expiration. Unix time in seconds.

public double? Expires { get; set; }

Property Value

double?

HttpOnly

Gets or sets if it's HTTP only.

public bool? HttpOnly { get; set; }

Property Value

bool?

Name

Gets or sets the name.

public string Name { get; set; }

Property Value

string

PartitionKey

Cookie partition key. In Chrome, it matches the top-level site the partitioned cookie is available in. In Firefox, it matches the source origin.

[JsonConverter(typeof(CookiePartitionKeyConverter))]
public CookiePartitionKey PartitionKey { get; set; }

Property Value

CookiePartitionKey

Path

Gets or sets the path.

public string Path { get; set; }

Property Value

string

Priority

Cookie Priority. Supported only in Chrome.

public CookiePriority? Priority { get; set; }

Property Value

CookiePriority?

SameParty

Always set to false. Supported only in Chrome.

[Obsolete("SameParty is deprecated and always ignored.")]
public bool? SameParty { get; set; }

Property Value

bool?

SameSite

Gets or sets the cookies SameSite value.

public SameSite? SameSite { get; set; }

Property Value

SameSite?

Secure

Gets or sets if it's secure.

public bool? Secure { get; set; }

Property Value

bool?

SourceScheme

Cookie source scheme type. Supported only in Chrome.

public CookieSourceScheme? SourceScheme { get; set; }

Property Value

CookieSourceScheme?

Value

Gets or sets the value.

public string Value { get; set; }

Property Value

string