aboutsummaryrefslogtreecommitdiffstats
path: root/php/logout.php
diff options
context:
space:
mode:
authoradam <adam@>2021-02-14 10:00:06 +0200
committeradam <adam@>2021-02-14 10:00:06 +0200
commita3b6210ac043e2fdeb20d48d464e3a1466f388b4 (patch)
treecefb4c6095e980e6e627e0995dfa7a905310a2a1 /php/logout.php
parent4dc542a5e3d7a2a9d2b0eb97de0c567cbdd01720 (diff)
downloadfileup-a3b6210ac043e2fdeb20d48d464e3a1466f388b4.tar.gz
destroys sessions more propperly now
Diffstat (limited to 'php/logout.php')
-rw-r--r--php/logout.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/php/logout.php b/php/logout.php
index d37b0a0..37304d7 100644
--- a/php/logout.php
+++ b/php/logout.php
@@ -5,6 +5,7 @@
// which will log the user out of our webpage
session_start();
-unset($_SESSION['user_object']);
+//unset($_SESSION['user_object']);
+session_destroy();
header('Location: /');
?>