0

Some details might useful:

  • ReactJS version 16.12.0
  • Chrome version 78.0.3904.108
  • Below is the setting of sessionStorage

enter image description here

What happened

Setting of sessionStorage was successful but after closing and reopening the tab key:value is still there. Closing a tab/window ends the session and clears objects in sessionStorage. see not working. enter image description here

Thank you for the answers.

braX
  • 11,506
  • 5
  • 20
  • 33
Aljohn Yamaro
  • 2,629
  • 25
  • 22
  • Did you try logging the login function to make sure it's not called by some mistake at tab load? – NicolaeS Dec 08 '19 at 16:46
  • @NicolaeS I put console.log("==") after first open curly brace. Tried close and open, at tab load "==" not appear on the console. And still, the object is not clear. – Aljohn Yamaro Dec 08 '19 at 17:09

0 Answers0