<script>
if (sessionStorage.getItem('moncapt')!= "true") {
var urlcourante = document.location.href; 
 if (urlcourante.substr(-7) == "newuser") {
    window.location.replace("./capt.php");
  }
 }
 if (sessionStorage.getItem('moncompte')!= "true") {
var urlcourante = document.location.href; 
 if (urlcourante.substr(-12) == "accounts.php") {
    window.location.replace("./compt.php");
 }
}
</script>