Where I can use local storage and where session stroge And if local Sto save data always why we don't use it always? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Where I can use local storage and where session stroge And if local Sto save data always why we don't use it always?

Local Storage and Session Storage

28th Dec 2020, 4:16 PM
Ziead Shab Kalieh
Ziead Shab Kalieh - avatar
15 Answers
+ 3
If you want your data to be removed when the browser tab is closed use session storage.
28th Dec 2020, 4:26 PM
Onur Can Gündoğdu
Onur Can Gündoğdu - avatar
28th Dec 2020, 4:18 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 2
Ayush Kumar So the session storage is useless
28th Dec 2020, 4:23 PM
Ziead Shab Kalieh
Ziead Shab Kalieh - avatar
+ 2
Right
28th Dec 2020, 4:23 PM
JustSteve
28th Dec 2020, 4:27 PM
Ziead Shab Kalieh
Ziead Shab Kalieh - avatar
+ 2
So u can do a form for an account and once u close the website the account be deleted?
28th Dec 2020, 4:28 PM
JustSteve
+ 2
28th Dec 2020, 4:29 PM
Ziead Shab Kalieh
Ziead Shab Kalieh - avatar
+ 2
:D
28th Dec 2020, 4:29 PM
JustSteve
+ 2
I will do tgat
28th Dec 2020, 4:36 PM
JustSteve
+ 1
Alphin K Sajan Thanks alphin I read it in solo learn but I don't know why we don't use the local storage always..
28th Dec 2020, 4:20 PM
Ziead Shab Kalieh
Ziead Shab Kalieh - avatar
28th Dec 2020, 4:37 PM
Ziead Shab Kalieh
Ziead Shab Kalieh - avatar
+ 1
Ok*
28th Dec 2020, 4:37 PM
Ziead Shab Kalieh
Ziead Shab Kalieh - avatar
+ 1
Hi
30th Dec 2020, 6:40 AM
Mancity
0
I didnt understand that lesson..
28th Dec 2020, 4:20 PM
JustSteve
0
I think bcuz its a storage on the variables...so we cant see on the web
28th Dec 2020, 4:21 PM
JustSteve