cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: 7.18.2: Possible bug in converting a cookie's expires attribute to unix timestamp ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 8 Sep 2008 13:32:11 +0200 (CEST)

On Sat, 6 Sep 2008, Stefan Krause wrote:

>> That's indeed a true bug. I figure we should simply consider -1 dates as
>> invalid (expired) unconditionally so only (co->expires== 0 || co->expires>
>> now) sends the cookie. Right?

> I assume co->expires is set to 0 by libCurl to mark it as a session cookie
> (cookie has no expires attribute set) ? Your proposed solution sounds good.

Exactly. 0 for session cookies, a positive number for an expiry time/date and
-1 for failed conversion.

This change has now been committed. Thanks!

-- 
  / daniel.haxx.se
Received on 2008-09-08