Is Response.redirect killing local storage?

I am trying to work with local storage HTML5in asp. I can read and write to storage, but if I do response.redirect, is all of the local storage destroyed?

<script type='text/javascript'>

localStorage["email"] = "<%=email%>";

localStorage["remember"] = "1";
</script>

This works great for saving, and I see a variable stored in local storage using developer tools.

However, if after that add

 response.redirect ("index.asp")

then all local memory is cleared. How can I continue to persevere?

+5
source share
1 answer

( ), localStorage , . javascript - localStorage. ASP ( , ), , ASP , , - javascript.

:

<script type='text/javascript'>

localStorage["email"] = "<%=email%>";

localStorage["remember"] = "1";

setTimeout(function(){
   location.href = "index.asp";
},100)

+3

All Articles