summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/functions.php b/functions.php
index 8822cb35e..acbc3d31e 100644
--- a/functions.php
+++ b/functions.php
@@ -802,7 +802,10 @@
}
function logout_user() {
- session_destroy();
+ session_destroy();
+ if (isset($_COOKIE[session_name()])) {
+ setcookie(session_name(), '', time()-42000, '/');
+ }
}
function get_script_urlpath() {