GithubHelp home page GithubHelp logo

remove cookie disable about vue-cookies HOT 5 CLOSED

cmp-cc avatar cmp-cc commented on May 30, 2024
remove cookie disable

from vue-cookies.

Comments (5)

cmp-cc avatar cmp-cc commented on May 30, 2024 3

test: no problem
https://jsfiddle.net/cmpcc/rLnbwsvg/6/

I need more information

from vue-cookies.

spcbeck avatar spcbeck commented on May 30, 2024

Not sure if this helps you - but I experienced something similar if I didn't explicitly set the path on the cookie when I initially created it. If I refreshed the page, it cleared the path property of the cookie. When I went to remove it by the key after refreshing (via a button), it would return true but not actually remove it from the browser.

I tried explicitly setting the path, and that allowed me to remove the cookie no matter if I had refreshed or not.

I think this could be a bug, but I don't work with cookies enough to know what is expected behavior. It should probably not return true at the very least.

from vue-cookies.

akizor avatar akizor commented on May 30, 2024

I experienced similar case and as @spcbeck stated, managed to solve it by specifically putting the path value to / when setting and removing the cookies.

from vue-cookies.

cmp-cc avatar cmp-cc commented on May 30, 2024

@spcbeck @akizor
path to '',default browser. path=current path. Other paths cannot be remove

v1.5.7, default path=/ , restore browser defaults through config method

// 30 day after, expire, '' current path , browser default
[this | Vue | window].$cookies.config('30d','')

from vue-cookies.

thEpisode avatar thEpisode commented on May 30, 2024

I had the same problem, but I change to current version and problem was solved.

from vue-cookies.

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.