CookieManager.setPersistentStorage

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::changed signal is emitted. By default, cookie_manager 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 #WebKitCookieManager associated to an ephemeral #WebKitWebsiteDataManager.

class CookieManager
void
setPersistentStorage

Parameters

filename string

the filename to read to/write from

storage webkit.types.CookiePersistentStorage

a #WebKitCookiePersistentStorage