Giter VIP home page Giter VIP logo

Comments (5)

astoilkov avatar astoilkov commented on May 18, 2024

That's an interesting idea. I didn't know window.name worked like that. Can you help me by answering some questions?

  • When window.name is lost?
    • What about the different ways to refresh the page: using the address bar, using Reload Page, using Force Reload Page?
  • Is the behavior of window.name consistent between browsers?
  • Do you know some libraries that use window.name for persisting data?
  • Is it secure? Do iframes have access to the value?

from use-local-storage-state.

kolben avatar kolben commented on May 18, 2024

https://developer.mozilla.org/en-US/docs/Web/API/Window/name

Wouldn't recommend it 😄

from use-local-storage-state.

astoilkov avatar astoilkov commented on May 18, 2024

@kolben I read the article. Thanks.

Why you wouldn't recommend it? What are the reasons? Thanks.

from use-local-storage-state.

kolben avatar kolben commented on May 18, 2024
  • The original article linked is 13 years old.
  • The frameworks referenced in the mdn article are long gone and the article clearly says it shouldn't be used to store user data
  • window.name will very soon no longer be available across tabs/ windows

from use-local-storage-state.

astoilkov avatar astoilkov commented on May 18, 2024

@kolben Yep. That's pretty definitive. Closing this issue then. Thanks!

from use-local-storage-state.

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.