Sfoglia il codice sorgente

Error message on signin.php now resets if reloading the page

Clément K 2 anni fa
parent
commit
f960cefb25
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      signin.php

+ 2 - 0
signin.php

@@ -12,6 +12,8 @@ try {
     $template = $twig->load('signin.html.twig');
 
     echo $template->render();
+
+    unset($_SESSION['message']);
 } catch (Exception $e) {
     die ('ERROR: ' . $e->getMessage());
 }