2
Where is the storage location of each of them? the local storage
I heard it’s from html5
and it’s better that session
and cookie
, what the difference between them?
2
Where is the storage location of each of them? the local storage
I heard it’s from html5
and it’s better that session
and cookie
, what the difference between them?
3
Yes. The local Storage and Session Storage are two methods that are part of the HTML5 DOM update. We call these methods Web Storage. The Storage location and Storage Session as all DOM elements can be manipulated with Javascript and/or Json. To be very objective I will explain so:
Local Storage: with it you can store data privately in the browser. The data will remain persisted until the user triggers the method to destroy the object. Examples of use:
In the case of Séssion Storage, the objective is the same. the only difference is that, the data will be stored differently for each browser tab and if in case the user closes the tab the data from that tab will be erased automatically. Examples of use:
Cookies: Are files which serve the same purposes of storing user data to be used in the application/site. The difference is that cookies are stored on the client computer and have inferior performance compared to the web. Example of use:
Session: Protocol/method used to create the line of communication authenticated between your user and the program/application to be used. That is, in the session the data must be encrypted in the transmission. Example of use:
I hope I helped. Big hug. the/
Browser other questions tagged php javascript html5 session cookies
You are not signed in. Login or sign up in order to post.
Remember which source "heard that Torage is better than others"?
– Woss
and Differences between localstorage vs sessionstorage
– Francisco
I heard in a course I’m doing, so I was curious
– Otavio Fagundes