use localStorage instead of sessionStorage so the code can deal with 
PA crashes