set_persistent_storage


Description:

public void set_persistent_storage (string filename, CookiePersistentStorage storage)

Set non-session cookies.

Set the filename where non-session cookies are stored persistently using storage as the format to read/write the cookies. Cookies are initially read from filename to create an initial set of cookies. Then, non-session cookies will be written to filename when the WebKitCookieManager:WebKitCookieManager:changed signal is emitted. By default, this doesn't store the cookies persistently, so you need to call this method to keep cookies saved across sessions.

This method should never be called on a CookieManager associated to an ephemeral WebsiteDataManager.

Parameters:

this

a CookieManager

filename

the filename to read to/write from

storage

a CookiePersistentStorage




2022 vala-language.org