From adca8c40390c5086ec21b01e5e9d191503b6cf40 Mon Sep 17 00:00:00 2001 From: Matteo Nastasi Date: Sun, 19 Apr 2020 11:52:56 +0200 Subject: [PATCH] test avoid reuse page (with browsers button or tab duplication) --- web/index.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/web/index.php b/web/index.php index 10ff96c..9e3efe5 100644 --- a/web/index.php +++ b/web/index.php @@ -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); -- 2.17.1