I have two pages and when a used clicks a button in the first one i make an ajax request and redirect to the second page using the following method.
window.location.href="newpage.php";
Now my intention is to use the result of the ajax request into this second page. But it seems when the second page is loaded all the json data from the ajax request is lost. Is there anyway to accomplish this?