GithubHelp home page GithubHelp logo

Comments (4)

jonaseberle avatar jonaseberle commented on June 18, 2024

Hi @msollmann,

are these HTML cookies?
Can you share the configuration for the tracking item? Is htmlCookieRemovalPattern involved?

This is the last change AFAIK in that area: 26db500

I would not want document.cookie but rather stick with the js-cookie library (Cookies.remove(...)).
Can you please try with that in your browser's JavaScript console?

Maybe we need to use Cookies.remove('name', { path: '' }) or other parameters?

from extension-cookieman.

Mainbird avatar Mainbird commented on June 18, 2024

Hi @jonaseberle,

I got the same issue as @msollmann and replacing Cookies.remove(itemKey) with Cookies.remove(itemKey, { path: '' }) did not work for me.

Some cookies like _gid, _ga, or _gcl_au were still present in this case, but
Cookies.remove(itemKey, { path: '', domain: '.' + document.location.host }) is working for me.

from extension-cookieman.

jonaseberle avatar jonaseberle commented on June 18, 2024

That might be specific with Google Cookies. I've seen it even that way:

domain: www.xxx.yy
cookie domain: .xxx.yy

Deleting _gat worked for me with these commands (all work on / as well as on a subpage /subpage):

Cookies.remove('_gat', {domain: '.xxx.yy'})
Cookies.remove('_gat', {path: '/', domain: '.xxx.yy'})
Cookies.remove('_gat', {path: '', domain: '.xxx.yy'})

The path/domain settings of cookies are (to my knowledge) not readable in JavaScript so we will have to try several Cookies.remove(...)s.

So I suggest:

fullDomain = document.location.host # www.xxx.yy
secondLevelDomain = fullDomain.split('.').slice(-2).join('.') # xxx.yy
Cookies.remove(itemKey)
Cookies.remove(itemKey, {path: ''})
Cookies.remove(itemKey, {path: '', domain: fullDomain})
Cookies.remove(itemKey, {path: '', domain: '.' + secondLevelDomain}))

What do you think?

from extension-cookieman.

Mainbird avatar Mainbird commented on June 18, 2024

Yeah, you are right it's not possible to get the metadata of a cookie. I think this solution is fair enough :).

from extension-cookieman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.