cURL / Mailing Lists / curl-library / Single Mail

curl-library

any libcurl API to delete expired cookies?

From: xi xi <geekxixi_at_gmail.com>
Date: Wed, 26 Jun 2013 22:10:28 +0800

I've been reading the cookie related codes in libcurl. And it seems that
there are no libcurl APIs to delete expired cookies.

CURLOPT_COOKIEFILE option just reads in those linked cookie files without
checking expire time.
CURLOPT_COOKIEJAR option writes out all cookies without checking expire
time.

It seems that expire time is checked only when libcurl selects outgoing
cookies during the sending of a HTTP response.

As mentioned above, all expired persistant cookies will be stored in the
CURLOPT_COOKIEJAR file even there are useless and invalid. It seems that
this file will get bigger and bigger. So will this become a problem?

Thanks,
With BR
xixi

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-06-26