In most cases, in order to achieve persistance, an additional storage mechanism is required whose lifetime exceeds the memory stack of the browser window to store the session data. Two options exist in the mainstream: storing a session token that is referenced agains the server, or an encrypted version of JSON called a JWT.