PersistCookieJar constructor
PersistCookieJar({})
persistSession
is whether persisting the cookies that without
"expires" or "max-age" attribute.
If tbe value is false, the session cookies will be discarded.
Otherwise, the session cookies will be persisted.
ignoreExpires
will determine whether to save/load expired cookies.
storage
is defaults to FileStorage.
Implementation
PersistCookieJar({
this.persistSession = true,
super.ignoreExpires,
Storage? storage,
this.deleteHostCookiesWhenLoadFailed = true,
}) : storage = storage ?? FileStorage();