Is there a cross-browser compatible way of forcing page refresh when clicking the navigator back button?
i am trying to access to actualised cookies :
i have a js setcookie function that record changes in a type selector
$( "#type-select" ).change(function() {
var type = $("#type-select").val();
SetCookie("liste-voyage-type",type);
});
i'd like to retrieve that value when returning on this page, clicking the browser back button, using php
if (isset($_COOKIE["liste-voyage-type"]))
$type=$_COOKIE["liste-voyage-type"];
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…