test avoid reuse page (with browsers button or tab duplication)
authorMatteo Nastasi <nastasi@alternativeoutput.it>
Sun, 19 Apr 2020 09:52:56 +0000 (11:52 +0200)
committerMatteo Nastasi <nastasi@alternativeoutput.it>
Sun, 19 Apr 2020 09:52:56 +0000 (11:52 +0200)
web/index.php

index 10ff96c..9e3efe5 100644 (file)
@@ -1254,7 +1254,15 @@ cookie_law(null);
    // var nonunload = false;
    var spo_slide, sup_slide;
 
+   var prevent_reuse = "";
    window.onload = function() {
+
+     if (prevent_reuse == "") {
+       prevent_reuse = "first load";
+     }
+     else {
+         location.reload();
+     }
      g_brow = get_browser_agent();
 
      g_prefs = new client_prefs(null);