Commit graph

9 commits

Author SHA1 Message Date
Christian Dywan
ea8b9ee7fe Improve handling of cookie updates
Be sure to remove outstanding times, use libsoup API
to free the list of cookies and use the cookie jar to
delete cookies.

Fixes: https://bugs.launchpad.net/midori/+bug/712770
2011-02-20 20:55:34 +01:00
Christian Dywan
392fa7fc85 Revise cookie saving based on a timeout
The variable MIDORI_COOKIES_DEBUG can be used to print
the number of updated cookies when they're written.

The temporary cookie file is written in the same location
now as moving across filesystems may not work.

Saving when Midori is quit is enforced.
2010-10-06 18:32:03 +02:00
Christian Dywan
28eb039ec0 Only update expiry of cookies if higher than maximum
Also assume 0 days to really mean 1 hour, and set the
maximum age accordingly. Otherwise SoupCookie thinks
that these cookies expire immediately.
2010-10-03 07:15:43 +02:00
Christian Dywan
3c7d4800bc 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.
2010-10-03 07:15:43 +02:00
Christian Dywan
16ce2e9516 Write cookies to a temporary file first, to be safe
It may happen that we are running out of space in the middle
of writing the file, and fopen deleted it already.
2010-09-20 23:37:47 +02:00
Christian Dywan
15790565e8 Create cookie jar on startup instead of waiting for an HTTP request 2009-03-24 01:10:15 +01:00
Christian Dywan
a6ac02daf3 Drop libSoup guards in KatzeHTTPAuth and Katze HTTPCookies 2009-03-16 02:20:58 +01:00
Christian Dywan
f2d5d6e29d Fix build running with libSoup < 2.25.2 2009-02-20 00:53:21 +01:00
Christian Dywan
79ed3a06c3 Factor persistent cookies into a soup feature 2009-02-14 04:14:01 +01:00