aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-31 11:13:10 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-31 11:13:10 +0000
commit977a543b3e12ae648ea958589a5d6f613421b06b (patch)
treed18afbfeae3a0d328daaaacc004e6e85d13e0074
parent0fe3f48d86e643dacec6660ff98523c281809382 (diff)
downloadelgg-977a543b3e12ae648ea958589a5d6f613421b06b.tar.gz
elgg-977a543b3e12ae648ea958589a5d6f613421b06b.tar.bz2
Minor tweak, logout now calls session_destroy()
git-svn-id: https://code.elgg.org/elgg/trunk@2045 36083f99-b078-4883-b0ff-0f9b5a30f544
-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;
}