Use localStorage instead, and include a timestanp; sessionStorage apparently causing problems, at least on localhost.