CookieJarDB#
Superclasses: CookieJar, Object
Implemented Interfaces: SessionFeature
Database-based Cookie Jar.
SoupCookieJarDB is a CookieJar that reads cookies from and writes
them to a sqlite database in the new Mozilla format.
(This is identical to SoupCookieJarSqlite in
libsoup-gnome; it has just been moved into libsoup proper, and
renamed to avoid conflicting.)
Constructors#
- class CookieJarDB
- classmethod new(filename: str, read_only: bool) → CookieJar#
Creates a
SoupCookieJarDB.filenamewill be read in at startup to create an initial set of cookies. Ifread_onlyisFalse, then the non-session cookies will be written tofilenamewhen thechangedsignal is emitted from the jar. (Ifread_onlyisTrue, then the cookie jar will only be used for this session, and changes made to it will be lost when the jar is destroyed.)- Parameters:
filename – the filename to read to/write from, or
Noneread_only –
Trueiffilenameis read-only