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:
parent
a70ceebd50
commit
3c7d4800bc
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue