From: Christian Dywan Date: Sun, 3 Oct 2010 04:12:05 +0000 (+0200) Subject: Reset age to enforce session cookies, don't delete X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c7d4800bc84530955ac0d4c35455661b690bbfb;p=midori Reset age to enforce session cookies, don't delete It is more practical to keep long-lived cookies but treat them as if they were session cookies. --- diff --git a/katze/katze-http-cookies.c b/katze/katze-http-cookies.c index c52f7886..dc33efc0 100644 --- a/katze/katze-http-cookies.c +++ b/katze/katze-http-cookies.c @@ -258,7 +258,7 @@ cookie_jar_changed_cb (SoupCookieJar* jar, else if (accept_cookies == 1 /* MIDORI_ACCEPT_COOKIES_SESSION */ && new_cookie->expires) { - soup_cookie_jar_delete_cookie (jar, new_cookie); + soup_cookie_set_max_age (new_cookie, -1); } else if (new_cookie->expires) {