summaryrefslogtreecommitdiff
path: root/actions/logout.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/logout.php')
-rw-r--r--actions/logout.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/logout.php b/actions/logout.php
index c4d0bd4e7..5f3a607a7 100644
--- a/actions/logout.php
+++ b/actions/logout.php
@@ -27,8 +27,9 @@ class LogoutAction extends Action {
if (!common_logged_in()) {
common_user_error(_t('Not logged in.'));
} else {
- oid_clear_last();
common_set_user(NULL);
+ common_real_login(false); # not logged in
+ common_forget_me(); # don't log back in!
common_redirect(common_local_url('public'));
}
}