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


Groups > comp.lang.javascript > #20897 > unrolled thread

how to track cookie deleting?

Started byLison Allen <blowxian@gmail.com>
First post2013-08-08 19:17 -0700
Last post2013-08-11 11:10 +0100
Articles 10 — 5 participants

Back to article view | Back to comp.lang.javascript


Contents

  how to track cookie deleting? Lison Allen <blowxian@gmail.com> - 2013-08-08 19:17 -0700
    Re: how to track cookie deleting? Andrew Poulos <ap_prog@hotmail.com> - 2013-08-09 13:12 +1000
    Re: how to track cookie deleting? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-08-09 14:58 +0200
      Re: how to track cookie deleting? JJ <duh@nah.meh> - 2013-08-09 21:10 +0700
      Re: how to track cookie deleting? John Harris <niam@jghnorth.org.uk.invalid> - 2013-08-09 16:35 +0100
        Re: how to track cookie deleting? JJ <duh@nah.meh> - 2013-08-10 15:55 +0700
        Re: how to track cookie deleting? Andrew Poulos <ap_prog@hotmail.com> - 2013-08-11 07:35 +1000
          Re: how to track cookie deleting? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-08-11 00:08 +0200
            Re: how to track cookie deleting? John Harris <niam@jghnorth.org.uk.invalid> - 2013-08-11 11:15 +0100
          Re: how to track cookie deleting? John Harris <niam@jghnorth.org.uk.invalid> - 2013-08-11 11:10 +0100

#20897 — how to track cookie deleting?

FromLison Allen <blowxian@gmail.com>
Date2013-08-08 19:17 -0700
Subjecthow to track cookie deleting?
Message-ID<0f109928-ec1e-4f82-9a5a-f3aa15f614ec@googlegroups.com>
Any one know how to track cookie deleting, find where was the specified cookie delete?

Already ruled out being delete by request header. So it can only be delete by javascript, right?

[toc] | [next] | [standalone]


#20898

FromAndrew Poulos <ap_prog@hotmail.com>
Date2013-08-09 13:12 +1000
Message-ID<Mc2dnSWI1r2Fw5nPnZ2dnUVZ_oednZ2d@westnet.com.au>
In reply to#20897
On 9/08/2013 12:17 PM, Lison Allen wrote:
> Any one know how to track cookie deleting, find where was the specified cookie delete?
>
> Already ruled out being delete by request header. So it can only be delete by javascript, right?
>

I've setup my browser to automatically delete cookies when I close the 
browser.

Andrew Poulos

[toc] | [prev] | [next] | [standalone]


#20900

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2013-08-09 14:58 +0200
Message-ID<2202844.iGi71jj4uv@PointedEars.de>
In reply to#20897
Lison Allen wrote:

> Any one know how to track cookie deleting, find where was the specified
> cookie delete?

<http://devtoolsecrets.com/>
 
> Already ruled out being delete by request header. So it can only be delete
> by javascript, right?

By any client-side ECMAScript implementation in that environment (there is 
no javascript¹).

Look for assignments to “document.cookie”, where the right-hand side 
contains “0” or “new Date()”.  A way to delete a (non-HTTP-only) cookie is

  document.cookie = "cookie_name=…;max-age=0";

or

  document.cookie = "cookie_name=…;expires=" + (new Date()).getUTCString();

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

______
¹ <http://PointedEars.de/es-matrix>

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#20901

FromJJ <duh@nah.meh>
Date2013-08-09 21:10 +0700
Message-ID<7v1bsukwmu8s$.1uz5fp2el57ek.dlg@40tude.net>
In reply to#20900
On Fri, 09 Aug 2013 14:58:04 +0200, Thomas 'PointedEars' Lahn wrote:
> By any client-side ECMAScript implementation in that environment (there is 
> no javascript¹).
> 
> Look for assignments to “document.cookie”, where the right-hand side 
> contains “0” or “new Date()”.  A way to delete a (non-HTTP-only) cookie is
> 
>   document.cookie = "cookie_name=…;max-age=0";
> 
> or
> 
>   document.cookie = "cookie_name=…;expires=" + (new Date()).getUTCString();
> 
> <https://developer.mozilla.org/en-US/docs/Web/API/document.cookie>

Hook the set method for the cookie property of the document object using
Object.defineProperty.

https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Global_Objects/Object/defineProperty

[toc] | [prev] | [next] | [standalone]


#20902

FromJohn Harris <niam@jghnorth.org.uk.invalid>
Date2013-08-09 16:35 +0100
Message-ID<s23a09pe2m85a8re6hpiv08a314ea4o42j@4ax.com>
In reply to#20900
On Fri, 09 Aug 2013 14:58:04 +0200, Thomas 'PointedEars' Lahn
<PointedEars@web.de> wrote:

  <snip>
>(there is 
>no javascript¹).
  <snip>

It's strange that Thomas never screams at people who use the word
'English'. Strange because it's well known that this is a collection
of similar languages and Thomas doesn't like specific names being
reused for naming collections.

Likewise, Thomas seems to think he speaks 'German'.

  John

[toc] | [prev] | [next] | [standalone]


#20905

FromJJ <duh@nah.meh>
Date2013-08-10 15:55 +0700
Message-ID<77p9yxmw71bp$.kx9kmcgqsqvj$.dlg@40tude.net>
In reply to#20902
On Fri, 09 Aug 2013 16:35:58 +0100, John Harris wrote:
> It's strange that Thomas never screams at people who use the word
> 'English'. Strange because it's well known that this is a collection
> of similar languages and Thomas doesn't like specific names being
> reused for naming collections.
> 
> Likewise, Thomas seems to think he speaks 'German'.

He came from de.comp.lang.javascript, I think.

[toc] | [prev] | [next] | [standalone]


#20910

FromAndrew Poulos <ap_prog@hotmail.com>
Date2013-08-11 07:35 +1000
Message-ID<irudnaJtgKWvL5vPnZ2dnUVZ_uKdnZ2d@westnet.com.au>
In reply to#20902
On 10/08/2013 1:35 AM, John Harris wrote:
> On Fri, 09 Aug 2013 14:58:04 +0200, Thomas 'PointedEars' Lahn
> <PointedEars@web.de> wrote:
>
>    <snip>
>> (there is
>> no javascript¹).
>    <snip>
>
> It's strange that Thomas never screams at people who use the word
> 'English'. Strange because it's well known that this is a collection
> of similar languages and Thomas doesn't like specific names being
> reused for naming collections.
>
> Likewise, Thomas seems to think he speaks 'German'.

I think you'll find that there's a distinct difference between 
ECMAScript (and its derivatives) and the languages commonly spoken by 
people.

Andrew Poulos

[toc] | [prev] | [next] | [standalone]


#20911

FromThomas 'PointedEars' Lahn <PointedEars@web.de>
Date2013-08-11 00:08 +0200
Message-ID<15145452.9N7WHKx9oy@PointedEars.de>
In reply to#20910
Andrew Poulos wrote:

> On 10/08/2013 1:35 AM, John Harris wrote:
>> […]
> 
> I think you'll find that there's a distinct difference between
> ECMAScript (and its derivatives) and the languages commonly spoken by
> people.

Do not feed the troll.

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

[toc] | [prev] | [next] | [standalone]


#20914

FromJohn Harris <niam@jghnorth.org.uk.invalid>
Date2013-08-11 11:15 +0100
Message-ID<ivoe0918ps7tvd1qe39i9fuo670ijqvm7a@4ax.com>
In reply to#20911
On Sun, 11 Aug 2013 00:08:53 +0200, Thomas 'PointedEars' Lahn
<PointedEars@web.de> wrote:

>Andrew Poulos wrote:
>
>> On 10/08/2013 1:35 AM, John Harris wrote:
>>> […]
>> 
>> I think you'll find that there's a distinct difference between
>> ECMAScript (and its derivatives) and the languages commonly spoken by
>> people.
>
>Do not feed the troll.

Thomas's opinion differs from my opinion. Therefore it is ethical for
him to argue his case by hurling abuse. Right ? Or wrong ?

  John

[toc] | [prev] | [next] | [standalone]


#20913

FromJohn Harris <niam@jghnorth.org.uk.invalid>
Date2013-08-11 11:10 +0100
Message-ID<qmoe09dpb8dj40km7imvv2a08kropqv6v3@4ax.com>
In reply to#20910
On Sun, 11 Aug 2013 07:35:38 +1000, Andrew Poulos
<ap_prog@hotmail.com> wrote:

>On 10/08/2013 1:35 AM, John Harris wrote:
>> On Fri, 09 Aug 2013 14:58:04 +0200, Thomas 'PointedEars' Lahn
>> <PointedEars@web.de> wrote:
>>
>>    <snip>
>>> (there is
>>> no javascript¹).
>>    <snip>
>>
>> It's strange that Thomas never screams at people who use the word
>> 'English'. Strange because it's well known that this is a collection
>> of similar languages and Thomas doesn't like specific names being
>> reused for naming collections.
>>
>> Likewise, Thomas seems to think he speaks 'German'.
>
>I think you'll find that there's a distinct difference between 
>ECMAScript (and its derivatives) and the languages commonly spoken by 
>people.

In both cases there is more than one variant. Therefore, according to
Thomas's logic, there is no 'German'.

  John

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web