Use sessionStorage instead of localStorage.