Skip to content

CookieParam

Namespace: PuppeteerSharp

public class CookieParam

Cookie data.

Inheritance: object

View source

public string Domain { get; set; }

Gets or sets the domain.

Value: string — The domain.

View source

public double? Expires { get; set; }

Gets or sets the expiration. Unix time in seconds.

Value: double? — Expiration.

View source

public bool? HttpOnly { get; set; }

Gets or sets if it’s HTTP only.

Value: bool? — Whether it’s http only or not.

View source

public string Name { get; set; }

Gets or sets the name.

Value: string — The name.

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 bool? PartitionKeyOpaque { get; set; }

True if cookie partition key is opaque. Supported only in Chrome.

Value: bool?

View source

public string Path { get; set; }

Gets or sets the path.

Value: string — The path.

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? — Whether it’s secure or not.

View source

public bool? Session { get; set; }

Gets or sets if it’s session only.

Value: bool? — Whether it’s session only or not.

View source

public int? Size { get; set; }

Gets or sets the size.

Value: int? — The size.

View source

public CookieSourceScheme? SourceScheme { get; set; }

Cookie source scheme type. Supported only in Chrome.

Value: CookieSourceScheme?

View source

public string Url { get; set; }

Gets or sets the URL.

Value: string — The URL.

View source

public string Value { get; set; }

Gets or sets the value.

Value: string — The value.

View source

Made with love by Dario Kondratiuk