diff options
author | adam <adam@> | 2021-02-14 10:00:06 +0200 |
---|---|---|
committer | adam <adam@> | 2021-02-14 10:00:06 +0200 |
commit | a3b6210ac043e2fdeb20d48d464e3a1466f388b4 (patch) | |
tree | cefb4c6095e980e6e627e0995dfa7a905310a2a1 /php/logout.php | |
parent | 4dc542a5e3d7a2a9d2b0eb97de0c567cbdd01720 (diff) | |
download | fileup-a3b6210ac043e2fdeb20d48d464e3a1466f388b4.tar.gz |
destroys sessions more propperly now
Diffstat (limited to 'php/logout.php')
-rw-r--r-- | php/logout.php | 3 |
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: /'); ?> |