cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: any libcurl API to delete expired cookies?

From: YAMADA Yasuharu <yasuharu.yamada_at_access-company.com>
Date: Thu, 27 Jun 2013 09:34:44 +0900

Hi xi,

When I contributed a patch of "[new feature] Maximum limitation of
cookies", the patch includes a feature of deleting expired cookie.
I think the new feature is not loaded.

See these mails and remove_expired() function.
http://curl.haxx.se/mail/lib-2013-04/0381.html
http://curl.haxx.se/mail/lib-2013-05/0010.html
http://curl.haxx.se/mail/lib-2013-05/0048.html
http://curl.haxx.se/mail/lib-2013-05/0074.html
http://curl.haxx.se/mail/lib-2013-05/0075.html
http://curl.haxx.se/mail/lib-2013-05/0122.html

Best regards,
thanks
===============
YAMADA Yasuharu
ACCESS CO., LTD.
Yasuharu.Yamada_at_access-company.com

2013/6/26 xi xi <geekxixi_at_gmail.com>

> 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
>

-- 
.
________________________________________
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. 
This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. 
If you are not the intended recipient, please immediately notify the sender by reply e-mailer and delete this message and its attachments, if any.
Thank you for your cooperation.
________________________________________

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