From 5ccc1cf5d763251fb1c8029cfd4e9f81e614a3a2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 4 Mar 2006 11:58:25 +0100 Subject: remember me feature --- functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'functions.php') 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() { -- cgit v1.2.3-54-g00ecf