Re: [http-state] Tab-level cookies for the browser

Bil Corry <> Wed, 29 July 2009 20:06 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 32F3D3A6961 for <>; Wed, 29 Jul 2009 13:06:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -1.735
X-Spam-Status: No, score=-1.735 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_MISMATCH_COM=0.553, HOST_MISMATCH_NET=0.311]
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id DGb04vJGvn1m for <>; Wed, 29 Jul 2009 13:06:01 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id 2D14D3A690A for <>; Wed, 29 Jul 2009 13:06:00 -0700 (PDT)
Received: from [] (unknown []) by (Postfix) with ESMTP id D3D13FCEEB; Wed, 29 Jul 2009 15:05:59 -0500 (CDT)
Message-ID: <>
Date: Wed, 29 Jul 2009 15:05:49 -0500
From: Bil Corry <>
User-Agent: Thunderbird (Windows/20090605)
MIME-Version: 1.0
To: Discuss HTTP State Management Mechanism <>
References: <>
In-Reply-To: <>
X-Enigmail-Version: 0.96.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
Cc: Ronald Ho <>, "Chandra, Rishi" <>, Jonathan Sergent <>
Subject: Re: [http-state] Tab-level cookies for the browser
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Discuss HTTP State Management Mechanism <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Wed, 29 Jul 2009 20:06:02 -0000

Micah Lemonik wrote on 7/28/2009 3:41 PM: 
> We would like to propose the browser add tab-level cookies that will
> override the global process-level cookie in a given tab. That is if a tab
> override cookie is set on a particular tab, that cookie will be used in
> place of the global cookie. Tab level cookies would last the lifetime of a
> tab and would propagate to child tabs.
> The use case we're trying to accommodate is to be logged into different
> google accounts in different tabs. sessionStorage gets us part of the way
> there in terms of enabling a per-tab resource that propagates to child tabs,
> but sessionStorage doesn't automatically send data to the server on any
> request the way cookies do. Essentially we're looking for a solution that 1.
> works with cookies for compatibility with existing infrastructure and 2.
> isn't limited to XMLHttpRequest usage where we have the ability to set
> custom headers.

Note that there's been some discussion of this on the ietf-http-wg list[1], so you may wish to read through that thread for other responses.

I'm wondering if Yngve's Cache Context[2] draft could be adapted to meet your use case.  It provides "a mechanism that permits a webservice to group webpages by associating them in a named context, a 'Cache Context'".  It would require the UA send the context name back to the server, and if so, it could be used to distinguish one tab from another (if I understand the draft correctly).

- Bil