Author Topic: logout redirect  (Read 6325 times)

Offline mylinuxguy

  • Newbie
  • *
  • Posts: 2
logout redirect
« on: April 21, 2022, 01:51:00 PM »
I do a google search on logout redirect or do a search here for logout redirect and everything seems to talk about stuff that is out of date. A lot of links to a roundcube plugin site just return with 404 errors. Soneone says something about plugins/logout_redirect but I don't have that plugin.  I am running the 1.6 beta software... so maybe that's an issue... I just started re-looking at round cube.. haven't played with it in a few years.

Anyway.. with the latest 1.6beta code... what' the proper way to handle a redirect to a different page when the user logs out?

I found the code:
    $RCMAIL->output->show_message('loggedout');
    $RCMAIL->logout_actions();
    $RCMAIL->kill_session();
    $RCMAIL->plugins->exec_hook('logout_after', $userdata);

and altered that so I can do my redirect... but i'd like to find an official way and not hack in the code i need.

Thanks - jack


Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,879
    • SKaero - Custom Roundcube development
Re: logout redirect
« Reply #1 on: April 22, 2022, 11:44:51 AM »
Use the logout_redirect plugin https://github.com/marneu/logout_redirect