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


Groups > comp.lang.javascript > #20900

Re: how to track cookie deleting?

Message-ID <2202844.iGi71jj4uv@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-08-09 14:58 +0200
Subject Re: how to track cookie deleting?
Newsgroups comp.lang.javascript
References <0f109928-ec1e-4f82-9a5a-f3aa15f614ec@googlegroups.com>

Show all headers | View raw


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.

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


Thread

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

csiph-web