Register on the forum now to remove ALL ads + popups + get access to tons of hidden content for members only!

Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General


Thread Tools Rate Thread Display Modes
Old 09-21-2017, 02:06 AM   #1
Registered User
Join Date: Aug 2014
Location: Bangalore
Posts: 3,106
What is the lifetime of local storage?

What is the lifetime of local storage?
ketul is offline   Reply With Quote

Old 09-27-2017, 01:58 AM   #2
Registered User
Join Date: Oct 2016
Posts: 776
Simply pairing a local storage key with a cookie provides an easy way to ensure that local storage can be updated with the same expiration parameters as a cookie. This example sets a cookie with the default parameter to expire when the browser is closed.
BryceBrady is offline   Reply With Quote
Old 02-19-2018, 10:35 PM   #3
Registered User
Join Date: Jul 2017
Posts: 106
It handles this for you automatically, including instances where the storage size exceeds the limit. If that happens, it begins pruning items that are the closest to their specified expiration. From the readme : lscache.set Stores the value in localStorage.
adityadev is offline   Reply With Quote
Old 02-20-2018, 03:38 AM   #4
Registered User
Join Date: Dec 2017
Posts: 16
expiration of local storage is upto the user user can explicitly create a timestamp for local storage.
paullimo is offline   Reply With Quote
Old 03-14-2018, 06:28 AM   #5
Registered User
Join Date: Dec 2017
Location: Santa Clara, California, USA
Posts: 91
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.
albertomorrison is offline   Reply With Quote
Old 03-17-2018, 12:35 AM   #6
Registered User
Join Date: Sep 2015
Location: UK
Posts: 625
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 .
smmexpertss is offline   Reply With Quote
Old 03-17-2018, 03:53 AM   #7
Registered User
Join Date: Jan 2018
Posts: 97
when control enters and after the computation, they are flush out.
Laser Hiar Removal
aesthetiqclinic is offline   Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tell me about the lifetime of local storage..? spobitsseo HTML / DHTML 0 08-01-2017 09:34 PM
What is the difference between local storage and cookies? sarvodyaseo HTML / DHTML 10 10-01-2016 02:51 AM
1GBPS VPS Servers - Linux/Windows/Root Access/RDP - Fast SSD Storage - PerfectMoney AJKpeter Post your ad here 0 12-16-2014 11:29 PM
Html5 local storage. m2soft HTML / DHTML 2 11-01-2014 12:46 AM
Lifetime of Local Storage Bates John Programming General 3 10-28-2014 03:27 AM

All times are GMT -7. The time now is 04:48 AM.

Powered by vBulletin Copyright © 2013 vBulletin Solutions, Inc.