---
title: "Discussion on \"Web Storage Explained – How to Use localStorage and sessionStorage in JavaScript Projects\" | Hashnode"
description: "Discussion on \"Web Storage Explained – How to Use localStorage and sessionStorage in JavaScript Projects\". Web Storage is what the JavaScript API browsers provide for storing data locally and securely within a user’s browser.\nSession and local storage are the two main types of web storage. They are similar to regular properties objects, but they persist (..."
url: "https://hashnode.com/posts/web-storage-localstorage-vs-sessionstorage-in-javascript/66ba0e11256f04965e2bd0c7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Web Storage Explained – How to Use localStorage and sessionStorage in JavaScript Projects](https://freecodecamp.org/news/web-storage-localstorage-vs-sessionstorage-in-javascript?utm_source=hashnode&utm_medium=feed)

Web Storage is what the JavaScript API browsers provide for storing data locally and securely within a user’s browser. Session and local storage are the two main types of web storage. They are similar to regular properties objects, but they persist (...

Oct 9, 2023 · 18 min read · freecodecamp.org  
Read the article

-   [#api](https://hashnode.com/tag/api)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#programming](https://hashnode.com/tag/programming)
-   [#storage](https://hashnode.com/tag/storage)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Oluwatobi Sofela](https://hashnode.com/@oluwatobiss)

@oluwatobiss

  
[View profile](https://hashnode.com/@oluwatobiss)

O-sweet-programming, my interest is to make you sweeter for all.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
