]> spindle.queued.net Git - midori/commitdiff
Reset age to enforce session cookies, don't delete
authorChristian Dywan <christian@twotoasts.de>
Sun, 3 Oct 2010 04:12:05 +0000 (06:12 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 3 Oct 2010 05:15:43 +0000 (07:15 +0200)
It is more practical to keep long-lived cookies but treat them
as if they were session cookies.

katze/katze-http-cookies.c

index c52f788646724e43f51bd91fa088466df411aab5..dc33efc0196781927a397413c8a75efe5416fa7c 100644 (file)
@@ -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)
         {