X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=actions%2Flogout.php;h=3d52da0d655ae16c70beddd413e48b650788230a;hb=9b5e6de1f4f897b7d83cd76480ed0f4bf2b1edf3;hp=a40400e7ee614ded9703722928bc792146516f8a;hpb=67a347bafb875be60e7554f308d80d7f0a1d2747;p=quix0rs-gnu-social.git diff --git a/actions/logout.php b/actions/logout.php index a40400e7ee..3d52da0d65 100644 --- a/actions/logout.php +++ b/actions/logout.php @@ -1,4 +1,25 @@ . + */ + +if (!defined('LACONICA')) { exit(1); } + +require_once(INSTALLDIR.'/lib/openid.php'); class LogoutAction extends Action { function handle($args) { @@ -7,7 +28,9 @@ class LogoutAction extends Action { common_user_error(_t('Not logged in.')); } else { common_set_user(NULL); - common_redirect(common_local_url('main')); + common_real_login(false); # not logged in + common_forgetme(); # don't log back in! + common_redirect(common_local_url('public')); } } }