X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Flogout.php;h=3d52da0d655ae16c70beddd413e48b650788230a;hb=d0e8f8d8a260a614616ae567d891fab7f0a15672;hp=c4d0bd4e7aac92587e5b90aa6c0376b61a3aafcd;hpb=480ca70dc8de827211c01a3ac1d75d148a21fbd9;p=quix0rs-gnu-social.git diff --git a/actions/logout.php b/actions/logout.php index c4d0bd4e7a..3d52da0d65 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_forgetme(); # don't log back in! common_redirect(common_local_url('public')); } }