Skip to content

CookieData

Namespace: PuppeteerSharp

public class CookieData

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

Inheritance: object

View source

public string Domain { get; set; }

Gets or sets the domain.

Value: string

View source

public double? Expires { get; set; }

Gets or sets the expiration. Unix time in seconds.

Value: double?

View source

public bool? HttpOnly { get; set; }

Gets or sets if it’s HTTP only.

Value: bool?

View source

public string Name { get; set; }

Gets or sets the name.

Value: string

View source

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

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

Value: CookiePartitionKey

View source

public string Path { get; set; }

Gets or sets the path.

Value: string

View source

public CookiePriority? Priority { get; set; }

Cookie Priority. Supported only in Chrome.

Value: CookiePriority?

View source

public SameSite? SameSite { get; set; }

Gets or sets the cookies SameSite value.

Value: SameSite?

View source

public bool? Secure { get; set; }

Gets or sets if it’s secure.

Value: bool?

View source

public CookieSourceScheme? SourceScheme { get; set; }

Cookie source scheme type. Supported only in Chrome.

Value: CookieSourceScheme?

View source

public string Value { get; set; }

Gets or sets the value.

Value: string

View source

Made with love by Dario Kondratiuk