aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/sessions.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php
index cce2b0e6b..92aeb92a2 100644
--- a/engine/lib/sessions.php
+++ b/engine/lib/sessions.php
@@ -154,7 +154,9 @@
unset($_SESSION['id']);
unset($_SESSION['user']);
- setcookie("elggperm", "", (time()-(86400 * 30)),"/");
+ setcookie("elggperm", "", (time()-(86400 * 30)),"/");
+
+ session_destroy();
return true;
}