Re: [http-state] Make draft-abarth-cookie-06 a working group item?

Dan Witte <dwitte@mozilla.com> Mon, 14 December 2009 21:08 UTC

Return-Path: <dwitte@mozilla.com>
X-Original-To: http-state@core3.amsl.com
Delivered-To: http-state@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9B3963A6894 for <http-state@core3.amsl.com>; Mon, 14 Dec 2009 13:08:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bPq6YOGM+b7n for <http-state@core3.amsl.com>; Mon, 14 Dec 2009 13:08:01 -0800 (PST)
Received: from mail.mozilla.com (corp01.sj.mozilla.com [63.245.208.141]) by core3.amsl.com (Postfix) with ESMTP id 67FA03A63EC for <http-state@ietf.org>; Mon, 14 Dec 2009 13:08:01 -0800 (PST)
Received: from mail.mozilla.com (mail.mozilla.com [10.2.72.15]) by mail.mozilla.com (Postfix) with ESMTP id A84D817FC07B for <http-state@ietf.org>; Mon, 14 Dec 2009 13:07:48 -0800 (PST)
Date: Mon, 14 Dec 2009 13:07:48 -0800
From: Dan Witte <dwitte@mozilla.com>
To: http-state <http-state@ietf.org>
Message-ID: <513987528.53603.1260824868635.JavaMail.root@cm-mail03.mozilla.org>
In-Reply-To: <alpine.DEB.2.00.0912121952580.18824@tvnag.unkk.fr>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-Originating-IP: [173.13.145.29]
X-Mailer: Zimbra 6.0.3_GA_1915.RHEL5_64 (ZimbraWebClient - FF3.0 (Mac)/6.0.3_GA_1915.RHEL5_64)
Subject: Re: [http-state] Make draft-abarth-cookie-06 a working group item?
X-BeenThere: http-state@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Discuss HTTP State Management Mechanism <http-state.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/http-state>, <mailto:http-state-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/http-state>
List-Post: <mailto:http-state@ietf.org>
List-Help: <mailto:http-state-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/http-state>, <mailto:http-state-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 14 Dec 2009 21:08:02 -0000

Firefox does more than use client time. If the server time was provided via HTTP header, we calculate expiry times (for both "expires" and "max-age" attributes) relative to such time. If not, we use client time. (This code is encapsulated in http://mxr.mozilla.org/mozilla-central/source/netwerk/cookie/src/nsCookieService.cpp#2062.)

Regards,
Dan

----- Original Message -----
From: "Daniel Stenberg" <daniel@haxx.se>
To: "Dan Winship" <dan.winship@gmail.com>
Cc: "http-state" <http-state@ietf.org>
Sent: Saturday, December 12, 2009 10:57:37 AM
Subject: Re: [http-state] Make draft-abarth-cookie-06 a working group item?

On Sat, 12 Dec 2009, Dan Winship wrote:

>> ... with no mention of exactly when the cookie's birth is. I figure we can 
>> define it to be since the receive moment for convenience if nothing else. 
>> Counting from the sending moment would be hard, even if I bet most server 
>> side implementations basically assumes it is from the moment they send the 
>> cookie.
>
> For the "max-age" Cache-Control directive, you count from the time in the 
> Date header. We could do the same (though we need to put something about 
> what to do if there's no Date header).

I know the libcurl implementation simply takes the current time (when the 
cookie is parsed/handled by the client) and adds the cookie's given max-time, 
which thus matches the current draft. I would suspect others do too since it 
is the easiest approach.

Does anyone here know of an implementation that (tries to) make it based on 
the server-side's creation time?

-- 

  / daniel.haxx.se
_______________________________________________
http-state mailing list
http-state@ietf.org
https://www.ietf.org/mailman/listinfo/http-state