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.
This commit is contained in:
Christian Dywan 2010-10-03 06:12:05 +02:00
parent a70ceebd50
commit 3c7d4800bc

View 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)
{