This is a submission for DEV Computer Science Challenge v24.06.12: One Byte Explainer.
Explainer
Local storage ,Session storage and Cookies:
Local storage:
It was just a web storage mechanism used to store the data locally whenever the user shuts down the window there is no loss of our data(storage capacity:upto5MB)
Session storage:
It was also allows use to store data in a web browser but for the short amount of time(i.e. window get closed).we can retrieve values by using methods like get, set
Cookies:
It was used to small amount data in web browser when compared to local and session usage of cookies like authentication, tracking and maintaining session state
Top comments (0)