Skip to content

Web Storage

  • Web Storage is an API that lets browsers store key/value pairs locally in the user's browser more intuitively than cookies. It provides two mechanisms for storing data on the client:
    • Local storage: Stores data for the current origin with no expiration date.
    • Session storage: Stores data for one session; the data is lost when the browser tab is closed.