[Xfce4-commits] <midori:master> Reset age to enforce session cookies, don't delete

Christian Dywan noreply at xfce.org
Sun Oct 3 07:18:01 CEST 2010


Updating branch refs/heads/master
         to 3c7d4800bc84530955ac0d4c35455661b690bbfb (commit)
       from a70ceebd5067307c4e779cf829d38e9e43663d9d (commit)

commit 3c7d4800bc84530955ac0d4c35455661b690bbfb
Author: Christian Dywan <christian at twotoasts.de>
Date:   Sun Oct 3 06:12:05 2010 +0200

    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 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/katze/katze-http-cookies.c b/katze/katze-http-cookies.c
index c52f788..dc33efc 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)
         {



More information about the Xfce4-commits mailing list