summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-03-04 11:58:25 +0100
committerAndrew Dolgov <[email protected]>2006-03-04 11:58:25 +0100
commit5ccc1cf5d763251fb1c8029cfd4e9f81e614a3a2 (patch)
tree7829ff2ede7159099d576a43fcaaaffa846b3a18 /functions.php
parent377a3e8bfaa73de110d5391ac2d6256050b6878e (diff)
remember me feature
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() {