CookiePartitionKey Struct

The partition key of a partitioned cookie (a cookie with the Partitioned attribute, CHIPS, https://github.com/privacycg/CHIPS): the site of the top-level document, and whether the cookie was set in a context with a cross-site ancestor (a cookie partitioned by a top-level site is not available to a same-site iframe that has a cross-site ancestor).

public readonly struct CookiePartitionKey : IEquatable<CookiePartitionKey>
Implements

Properties

NameDescription
HasCrossSiteAncestorGets whether the cookie was set in a context with a cross-site ancestor.
TopLevelSiteGets the scheme and the registrable domain of the top-level site (e.g. https://example.com).

HasCrossSiteAncestor

CookiePartitionKey.cs

Gets whether the cookie was set in a context with a cross-site ancestor.

public bool HasCrossSiteAncestor { get; init; }

Property value

bool

Gets the scheme and the registrable domain of the top-level site (e.g. https://example.com).

public required string TopLevelSite { get; init; }

Property value

string

Methods

NameDescription
Equals(CookiePartitionKey)
Equals(object)
GetHashCode()
ToString()

Equals overloads

Equals(CookiePartitionKey)

public bool Equals(CookiePartitionKey other)
Parameters
other CookiePartitionKey
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(CookiePartitionKey, CookiePartitionKey)
operator !=(CookiePartitionKey, CookiePartitionKey)

operator ==(CookiePartitionKey, CookiePartitionKey)

public static bool operator ==(CookiePartitionKey left, CookiePartitionKey right)

Parameters

left CookiePartitionKey
right CookiePartitionKey

Returns

bool

No documentation is available.

operator !=(CookiePartitionKey, CookiePartitionKey)

public static bool operator !=(CookiePartitionKey left, CookiePartitionKey right)

Parameters

left CookiePartitionKey
right CookiePartitionKey

Returns

bool

No documentation is available.