Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #35850

Re: Accessing the value of a cookie

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.javascript
Subject Re: Accessing the value of a cookie
Date 2018-11-22 12:22 +0000
Organization A noiseless patient Spider
Message-ID <87y39l9u9r.fsf@bsb.me.uk> (permalink)
References <f11ea23c-05c7-4b52-8f52-c66912ac1e4e@googlegroups.com> <87lg5md2sj.fsf@bsb.me.uk> <f676846e-367a-483e-81ed-6ff68ec3ae7c@googlegroups.com>

Show all headers | View raw


groovee@cyberdude.com writes:

> On Wednesday, 21 November 2018 18:07:55 UTC+5:30, Ben Bacarisse  wrote:
>  
>> The original code (which you altered) is intended to find out if a key
>> exists, not what value it has.
>
> I did not! This page, look at Example 6 (I have a feeling you were
> looking at 5!):

Yes, you are right -- I was looking at the very similar previous
example.  Sorry about that.

The code shown in both exercises does not do what it purports to do.
Don't copy it.  It did not occur to me that such a bad example would be
given on the MDN website and I should therefore also apologise for
assuming you'd written anything that bad!

> https://developer.mozilla.org/en-US/docs/Web/API/document/cookie

-- 
Ben.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Accessing the value of a cookie groovee@cyberdude.com - 2018-11-20 23:33 -0800
  Re: Accessing the value of a cookie JJ <jj4public@vfemail.net> - 2018-11-21 16:03 +0700
  Re: Accessing the value of a cookie Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-11-21 12:37 +0000
    Re: Accessing the value of a cookie groovee@cyberdude.com - 2018-11-22 00:56 -0800
      Re: Accessing the value of a cookie Ben Bacarisse <ben.usenet@bsb.me.uk> - 2018-11-22 12:22 +0000
  Re: Accessing the value of a cookie Julio Di Egidio <julio@diegidio.name> - 2018-11-24 06:11 -0800

csiph-web