They are almost the same.
However if you want to store info beyond a tab, which means even after a tab is closed, then use localStorage
Opening a page in a new tab or window will cause a new session to be initiated.
That means that info stored in sessionStorage can’t share between tabs.
more details could be found here