Results 1 to 5 of 5
  1. #1
    Senior Member dennis123's Avatar
    Join Date
    Apr 2013
    Location
    Bangalore
    Posts
    3,627

    What is the lifetime of local storage?

    What is the lifetime of local storage?

  2. #2
    Registered User
    Join Date
    Apr 2014
    Location
    india
    Posts
    407
    According to John Resig, it's not possible to specify expiration. It's completely up to the user.

  3. #3
    Registered User 24x7servermanag's Avatar
    Join Date
    Jul 2017
    Location
    India
    Posts
    1,020
    That's correct! It's upto the user. You can define that. User need to create the timestamp explicitly for the local storage. Because there is no use of storing the too old information. When you define the timestamp value explicitly then you will be asked for whether to flush the storage or not.
    Server Management Company
    India's Leading Managed Service Provider | Skype: techs24x7
    Cpanel Technical Discussions - Lets talk !

  4. #4
    Senior Member
    Join Date
    Mar 2017
    Posts
    422
    There is no time limit for local storage, it doesn't have the expiration limit. User can set ut Manually
    To know more about you can visit the following
    Difference Between Cookies, Local Storage & Session Storage

  5. #5
    Registered User
    Join Date
    May 2015
    Posts
    524
    Browsers that implement the “Web Storage” draft specification define two properties on the Window object: localStorage and sessionStorage. Both properties refer to a Storage object—a persistent associative array that maps string keys to string values. Storage objects work much like regular JavaScript objects: simply set a property of the object to a string, and the browser will store that string for you. The difference between localStorage and sessionStorage has to do with lifetime and scope: how long the data is saved for and who the data is accessible to.

    Storage lifetime and scope are explained in more detail below. First, however, let’s look at some examples. The following code uses localStorage, but it would also work with sessionStorage:

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.