From 3c7d4800bc84530955ac0d4c35455661b690bbfb Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 3 Oct 2010 06:12:05 +0200 Subject: [PATCH] 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. --- katze/katze-http-cookies.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5