[whatwg] HTML Cookie API

Darin Fisher darin at chromium.org
Fri Feb 26 11:38:28 PST 2010


On Fri, Feb 26, 2010 at 10:56 AM, Diogo Resende <dresende at thinkdigital.pt>wrote:

>
>
> >         What about something like:
> >
> >         document.pushCookies(function () {
> >                // cookies have been pushed to the js process
> >                var x = document.getCookie("x");
> >                // whatever...
> >         });
> >
> >
> > This seems similar to Adam's proposed document.getAllCookies.
> >
> >
> > -Darin
>
> No. pushCookies would be a way of pushing cookies to the current js and
> then you could call getCookie several times without defining a callback.
> It would be almost like:
>
>        document.observe("cookieload", myAppLoad)
>
>
Right.  My point was that you could implement pushCookies on top of Adam's
API.

-Darin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100226/e4c0c415/attachment-0002.htm>


More information about the whatwg mailing list