0

How we can check the values in session storage? I mean, if i need to check what are the values stored in Session storage, how we can check that?

1 Answers1

1

set the key and value like this

sessionStorage.setItem("user-id", userId);

and extract it like this using key

userId = sessionStorage.getItem("user-id")
Shlok Nangia
  • 2,355
  • 3
  • 16
  • 24