Announcement

Collapse
No announcement yet.

What is the main difference between localStorage and sessionStorage

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is the main difference between localStorage and sessionStorage

    What is the main difference between localStorage and sessionStorage

  • #2


    LocalStorage is the same as SessionStorage but it persists the data even when the browser is closed and reopened(i.e it has no expiration time) whereas in sessionStorage data gets cleared when the page session ends.

    Comment

    Related Topics

    Collapse

    Working...
    X