Use localStorage instead of cookies.