Question 20
A developer uses sessionStorage to store authentication tokens in a web application. The user logs in, the token is stored, and then they close the browser window completely. When they reopen the browser later, what will happen? Code:
The token will be preserved and available in the new browser session.
The token will be cleared because sessionStorage is cleared when the browser is closed.
The token will be partially available but require re-authentication.
The token will move to localStorage automatically.