X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Flogout.php;h=3d52da0d655ae16c70beddd413e48b650788230a;hb=d0e8f8d8a260a614616ae567d891fab7f0a15672;hp=053130b9f7a86e02311f51789ce40538cc18b916;hpb=a0bdc80053ce3b1d908aad6ab4a462b44b504e0c;p=quix0rs-gnu-social.git diff --git a/actions/logout.php b/actions/logout.php index 053130b9f7..3d52da0d65 100644 --- a/actions/logout.php +++ b/actions/logout.php @@ -1,24 +1,26 @@ . */ if (!defined('LACONICA')) { exit(1); } +require_once(INSTALLDIR.'/lib/openid.php'); + class LogoutAction extends Action { function handle($args) { parent::handle($args); @@ -26,6 +28,8 @@ class LogoutAction extends Action { common_user_error(_t('Not logged in.')); } else { common_set_user(NULL); + common_real_login(false); # not logged in + common_forgetme(); # don't log back in! common_redirect(common_local_url('public')); } }