Apart from being non
persistent and scoped only to the current window, are there any benefits (performance,
data access, etc) to Session Storage over Local Storage?
Saturday 21 October 2017
javascript - HTML5 Local storage vs. Session storage
Answer
href="https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage"
rel="noreferrer">localStorage and href="https://developer.mozilla.org/en-US/docs/Web/API/Window/sessionStorage"
rel="noreferrer">sessionStorage both extend href="https://developer.mozilla.org/en-US/docs/Web/API/Storage"
rel="noreferrer">Storage. There is no difference between them except for
the intended "non-persistence" of
sessionStorage
.
That
is, the data stored in localStorage
persists until explicitly
deleted. Changes made are saved and available for all current and future visits to the
site.
For
sessionStorage
, changes are only available per tab. Changes
made are saved and available for the current page in that
tab until it is closed. Once it is closed, the stored data is
deleted.
php - file_get_contents shows unexpected output while reading a file
I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...
-
I have an app which needs a login and a registration with SQLite. I have the database and a user can login and register. But i would like th...
-
I would like to use enhanced REP MOVSB (ERMSB) to get a high bandwidth for a custom memcpy . ERMSB was introduced with the Ivy Bridge micro...
-
I am new to dask and I found so nice to have a module that makes it easy to get parallelization. I am working on a project where I was able ...
No comments:
Post a Comment