use proper sessionStorage methods.