Re: [http-state] Ticket 5: Cookie ordering
Dan Witte <dwitte@mozilla.com> Mon, 08 February 2010 18:18 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 75E1F3A6F0B for <http-state@core3.amsl.com>; Mon, 8 Feb 2010 10:18:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.299
X-Spam-Level:
X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, J_CHICKENPOX_74=0.6]
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 h3XDueFMhkO5 for <http-state@core3.amsl.com>; Mon, 8 Feb 2010 10:18:10 -0800 (PST)
Received: from mail.mozilla.com (corp01.sj.mozilla.com [63.245.208.141]) by core3.amsl.com (Postfix) with ESMTP id 7A97828C131 for <http-state@ietf.org>; Mon, 8 Feb 2010 10:18:10 -0800 (PST)
Received: from mail.mozilla.com (mail.mozilla.com [10.2.72.15]) by mail.mozilla.com (Postfix) with ESMTP id EE70717FC617; Mon, 8 Feb 2010 10:19:03 -0800 (PST)
Date: Mon, 08 Feb 2010 10:19:03 -0800
From: Dan Witte <dwitte@mozilla.com>
To: Adam Barth <ietf@adambarth.com>
Message-ID: <824668591.55936.1265653143902.JavaMail.root@cm-mail03.mozilla.org>
In-Reply-To: <551654680.55928.1265653053240.JavaMail.root@cm-mail03.mozilla.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Originating-IP: [63.245.220.240]
X-Mailer: Zimbra 6.0.4_GA_2038.RHEL5_64 (ZimbraWebClient - FF3.0 (Linux)/6.0.4_GA_2038.RHEL5_64)
Cc: http-state <http-state@ietf.org>
Subject: Re: [http-state] Ticket 5: Cookie ordering
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, 08 Feb 2010 18:18:11 -0000
I'd also be willing to change Firefox's behavior to match IE. I dislike creation date sorting, and we implemented it because sites seemed to rely on it at the time - if we can revisit this and get rid of it, so much the better. Right now we're doing alpha releases for Firefox.next, so the timing is ripe. Dan ----- "Adam Barth" <ietf@adambarth.com> wrote: > Would you be willing to share your test cases? I'd like to add them > to the test suite. > > Thanks, > Adam > > > On Mon, Feb 8, 2010 at 8:19 AM, Yngve Nysaeter Pettersen > <yngve@opera.com> wrote: > > On Fri, 05 Feb 2010 13:56:58 +0100, Yngve Nysaeter Pettersen > > <yngve@opera.com> wrote: > >> > >> IOW, if ordering is determined by anything but the domain and path > the > >> sequence of cookie is going to vary depending on which servers the > clients > >> visits and the sequence it visits them, and this might cause > significant > >> problems for a server that considers ordering significant. > > > > Some testing by a couple of my colleagues setting two cookies with > the same > > name (and path) "host-only" and "domain-wide" have found the > following in > > browsers other than Opera: > > > > ----- > > Visit order: Host-only, domain-wide > > Cookie order: "host-only", "domain-wide" > > ----- > > > > ----- > > Visit order: domain-wide, Host-only > > Cookie order (IE): "host-only", "domain-wide" > > Cookie order (Others): "domain-wide", "host-only" > > ----- > > > > To me it looks like IE is sorting by domain, at the same path level, > with FF > > and Safari (the two tested) sort on creation data. > > > > The consequence is that there is apparently three deployed ways to > send > > cookies: > > > > - Cookies at the same path level are grouped and sorted by > creation date, > > earliest first (FF&co) > > - Cookies at the same path level are grouped and sorted by domain, > most > > specific first (IE) > > - Cookies are grouped by domain (most specific first), then sorted > by path > > (most specific first) within each domain (Opera) > > > > IMO the creation date method is less predictable than the other two, > and > > will cause problems for sites depending on a specific sequence of > cookies. > > > > My suggestion would be that the spec should recommend ordering an > ordering > > based on on both domain and path (order of preference to be > decided), as > > that will be more predictable for sites using multiple cookies with > the same > > name at various domain and path levels. > > > > -- > > Sincerely, > > Yngve N. Pettersen > > > ******************************************************************** > > Senior Developer Email: yngve@opera.com > > Opera Software ASA http://www.opera.com/ > > Phone: +47 24 16 42 60 Fax: +47 24 16 40 01 > > > ******************************************************************** > > _______________________________________________ > > http-state mailing list > > http-state@ietf.org > > https://www.ietf.org/mailman/listinfo/http-state > > > _______________________________________________ > http-state mailing list > http-state@ietf.org > https://www.ietf.org/mailman/listinfo/http-state
- [http-state] Ticket 5: Cookie ordering Adam Barth
- Re: [http-state] Ticket 5: Cookie ordering Daniel Stenberg
- Re: [http-state] Ticket 5: Cookie ordering Adam Barth
- Re: [http-state] Ticket 5: Cookie ordering David Morris
- Re: [http-state] Ticket 5: Cookie ordering Adam Barth
- Re: [http-state] Ticket 5: Cookie ordering David Morris
- Re: [http-state] Ticket 5: Cookie ordering Adam Barth
- Re: [http-state] Ticket 5: Cookie ordering Daniel Stenberg
- Re: [http-state] Ticket 5: Cookie ordering Adam Barth
- Re: [http-state] Ticket 5: Cookie ordering Daniel Stenberg
- Re: [http-state] Ticket 5: Cookie ordering Dan Winship
- Re: [http-state] Ticket 5: Cookie ordering Dan Winship
- Re: [http-state] Ticket 5: Cookie ordering Maciej Stachowiak
- Re: [http-state] Ticket 5: Cookie ordering Anne van Kesteren
- Re: [http-state] Ticket 5: Cookie ordering Yngve Nysaeter Pettersen
- Re: [http-state] Ticket 5: Cookie ordering Adam Barth
- Re: [http-state] Ticket 5: Cookie ordering Yngve Nysaeter Pettersen
- Re: [http-state] Ticket 5: Cookie ordering Daniel Stenberg
- Re: [http-state] Ticket 5: Cookie ordering Yngve Nysaeter Pettersen
- Re: [http-state] Ticket 5: Cookie ordering Dan Witte
- Re: [http-state] Ticket 5: Cookie ordering Paul E. Jones
- Re: [http-state] Ticket 5: Cookie ordering Adam Barth
- Re: [http-state] Ticket 5: Cookie ordering Achim Hoffmann
- Re: [http-state] Ticket 5: Cookie ordering Adam Barth
- Re: [http-state] Ticket 5: Cookie ordering Dan Witte
- Re: [http-state] Ticket 5: Cookie ordering Achim Hoffmann
- Re: [http-state] Ticket 5: Cookie ordering Adam Barth
- Re: [http-state] Ticket 5: Cookie ordering Daniel Stenberg
- Re: [http-state] Ticket 5: Cookie ordering Achim Hoffmann