Replace sessionStorage with localStorage.