diff options
Diffstat (limited to 'engine/lib/sessions.php')
-rw-r--r-- | engine/lib/sessions.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/lib/sessions.php b/engine/lib/sessions.php index 5cb3e8260..4cdc9bcce 100644 --- a/engine/lib/sessions.php +++ b/engine/lib/sessions.php @@ -369,7 +369,7 @@ function logout() { unset($_SESSION['guid']); unset($_SESSION['id']); unset($_SESSION['user']); - + setcookie("elggperm", "", (time() - (86400 * 30)), "/"); // pass along any messages @@ -466,8 +466,8 @@ function session_init($event, $object_type, $object) { set_last_action($_SESSION['guid']); } - register_action("login", true); - register_action("logout"); + elgg_register_action("login", '', 'public'); + elgg_register_action("logout"); // Register a default PAM handler register_pam_handler('pam_auth_userpass'); |