add_cookie_with_first_party


Description:

public void add_cookie_with_first_party (Uri first_party, owned Cookie cookie)

Adds cookie to this.

Emits the [signal@CookieJar:SoupCookieJar:changed] signal if we are modifying an existing cookie or adding a valid new cookie ('valid' means that the cookie's expire date is not in the past).

first_party will be used to reject cookies coming from third party resources in case such a security policy is set in the this.

cookie will be 'stolen' by the jar, so don't free it afterwards.

For secure cookies to work properly you may want to use [[email protected]_cookie_full].

Parameters:

this

a CookieJar

first_party

the URI for the main document

cookie

a Cookie




2022 vala-language.org