Session Storage

noun

say it: “SESH-un STOR-ij” /ˈsɛʃən ˈstɔːrɪdʒ/

A place in the browser to save small pieces of text for one tab while it stays open; closing the tab clears it.

What is Session Storage in JavaScript?

Session Storage — Browser key-value storage kept for one tab's browsing session.

sessionStorage.setItem("step", "2");

In a sentence

  • “I kept the half-filled order in session storage: a refresh didn't wipe it, but closing the tab did.”
  • “The quiz saves the current question number in session storage, so reloading the page keeps your place.”

Level: Freelancer · More JavaScript terms at this level

Updated