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!

+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

12/28/2020 4:16:28 PM

Ziead Shab Kalieh

18 Answers

New Answer

+3

If you want your data to be removed when the browser tab is closed use session storage.

+4

Read this lesson : https://www.sololearn.com/learn/HTML/2197/?ref=app For more info : https://www.w3schools.com/html/html5_webstorage.asp

+2

Ayush Kumar So the session storage is useless

+2

Right

+2

Yeh Thank U Very Much Steven...JustToCode Onur Can Gündoğdu Ayush Kumar

+2

So u can do a form for an account and once u close the website the account be deleted?

+2

Steven...JustToCode Correct👍

+2

+2

I will do tgat

+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..

+1

Steven...JustToCode It's OK

+1

+1

0

I didnt understand that lesson..

0

I think bcuz its a storage on the variables...so we cant see on the web