Sfoglia il codice sorgente

should kill any session data on logout

development
mauirixxx 8 anni fa
parent
commit
d25cfa3b11
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. +10
    -0
      gw-logout.php

+ 10
- 0
gw-logout.php Vedi File

@@ -0,0 +1,10 @@
<?php
if (isset($_POST['logout'])){
session_unset();
session_destroy();
header("refresh:5;url=login.php");
echo '<CENTER>You have been logged out ...<BR />Returning to login screen in a few seconds</CENTER>';
} else {
echo 'Something went wrong, you haven't been logged out!';
}
?>

Caricamento…
Annulla
Salva