static void cookiejar_changed(SoupCookieJar *self, SoupCookie *old_cookie, SoupCookie *new_cookie)
{
flock(COOKIEJAR(self)->lock, LOCK_EX);
- if (new_cookie && !new_cookie->expires) {
+ if (new_cookie && !new_cookie->expires && vb.config.cookie_timeout) {
soup_cookie_set_expires(new_cookie, soup_date_new_from_now(vb.config.cookie_timeout));
}
SOUP_COOKIE_JAR_CLASS(cookiejar_parent_class)->changed(self, old_cookie, new_cookie);