WebKit2.CookieManager.prototype.set_persistent_storage

function set_persistent_storage(filename: String, storage: WebKit2.CookiePersistentStorage): void {
    // Gjs wrapper for webkit_cookie_manager_set_persistent_storage()
}
  

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 persistenly, so you need to call this method to keep cookies saved across sessions.

filename

the filename to read to/write from

storage

a WebKit2.CookiePersistentStorage