Giter VIP home page Giter VIP logo

Comments (8)

carhartl avatar carhartl commented on June 7, 2024

Just remove the expires: null part...

from jquery-cookie.

carhartl avatar carhartl commented on June 7, 2024

On the other hand, it should work like that. Which version do you use, and what exactly does not work?

from jquery-cookie.

veeren avatar veeren commented on June 7, 2024

I am using shopify and it is "1.8" I guess.
So my task is to show a popup when a user comes and if user closes the popup it should create a cookie for session only, so it does not show till user session ends.

What happening here I tried to do by above code and it did not worked, and FYI I am using
$.cookie('cookie_name', 'cookie_value', { path: '/' });
for other purposes and those cookies remains after session as well with this.

from jquery-cookie.

FagnerMartinsBrack avatar FagnerMartinsBrack commented on June 7, 2024

What does exactly "not work" means? The cookie is not created or when you close and open the window the cookie is still there?

from jquery-cookie.

veeren avatar veeren commented on June 7, 2024

Cookie is still there.

from jquery-cookie.

carhartl avatar carhartl commented on June 7, 2024

Maybe another cookie that's not a session cookie is shadowing the session cookie...

Can you post a screenshot of the contents of the cookie view in the developer console?

from jquery-cookie.

FagnerMartinsBrack avatar FagnerMartinsBrack commented on June 7, 2024

Check this answer in stackoverflow and make sure "Continue where you left off" setting is disabled in Google Chrome.

from jquery-cookie.

veeren avatar veeren commented on June 7, 2024

@FagnerMartinsBrack, Thanks that was the case and fixed it.

from jquery-cookie.

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.