• Resolved devilroxx

    (@devilroxx)


    Hi,
    I’ve activated a simple function to redirect users after logout:
    add_action(‘wp_logout’,’auto_redirect_after_logout’);
    function auto_redirect_after_logout(){
    wp_redirect( home_url() );
    exit();
    }
    It works only if your plugin is deactivated.
    What I can do to have it working?
    Thx

    https://wordpress.org/plugins/ip-geo-block/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi devilroxx,

    I’m sorry about this issue but this plugin kills the redirection at logout.

    There’re two use cases about logout redirection. One is the case we can see on BuddyPress. In this case, this plugin should prevent to disclose the special crafted nonce for WP-ZEP in the browser’s address bar.

    And the second case is yours. I beleive that yours doesn’t affect to WP-ZEP and should work. So I’ll try to solve it.

    Thanks for your reporting. Please keep watching this thread!

    Thread Starter devilroxx

    (@devilroxx)

    Ok thank you for the answer!
    If you have a quick hack to fix it plesae let me know as I don’t want desctivate your plugin that is really important for my website security.
    One more thing: what is wp-zep? 😀
    Thank you so much

    Thread Starter devilroxx

    (@devilroxx)

    Hi tokkonopapa, when is it possible, the same issue is regarding the login redirect.
    Thank you in advance

    Plugin Author tokkonopapa

    (@tokkonopapa)

    Hi devilroxx,

    Sorry I’ve kept you waiting. I’m now testing my new version which will fix this issue and others. I can release it within a day!

    Thanks.

    Thread Starter devilroxx

    (@devilroxx)

    Thank you so much!

    Plugin Author tokkonopapa

    (@tokkonopapa)

    I’ve fixed this issue in 2.2.3. Please check it and let me know something if you still have some issues.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Logout redirect doesn't work when plugin is active’ is closed to new replies.