I am working on React JS application. Here, I have used session storage.
When user get logged in then we are storing user id in session storage... this works fine
but when I open the application url in another tab then user is not logged in
he get logged out
sessionStorage is linked to a particular tab. Once the tab is closed the stored data is deleted. If you want the data to persist in browser memory you can use localStorage