WordPress.org

Ready to get started?Download WordPress

Forums

will not let me log out (11 posts)

  1. napogino
    Member
    Posted 5 years ago #

    will not let me log out. After clicking on the logout button the page just seems to re-fresh itself. it does not allow me to log out. any suggestions please.

  2. @mercime
    Volunteer Moderator
    Posted 5 years ago #

    Replace example.com below with your URL

    http://example.com/wp-login.php?loggedout=true

  3. napogino
    Member
    Posted 5 years ago #

    Thanks

  4. krushinfo
    Member
    Posted 5 years ago #

    This doesnt work now does it?

    They have added some fancy feature..

    Any ideas how to do this? I want to use an image as the log out button.

  5. Hiranthi
    Member
    Posted 5 years ago #

    the new url looks like: http://www.yourdomain.com/wp-login.php?action=logout&_wpnonce=code

    Where yourdomain.com is ofcourse your own domain and code after wpnonce is some sort of code. Without the wpnonce in the url you get to a page asking you really want to logout.

    When I try (wp2.7) logging out with the URL like mercime gave (the url wp used before) it won't accept my password anymore.. :s

  6. krushinfo
    Member
    Posted 5 years ago #

    How can I avoid this WPNONCE code...?

    My theme used to just have a link to the standard log out link.. now it seems to add a unique code.

    The page that asks if I want to log out says something along the lines of 'are you sure you want to log out', then it has a link 'try again', which doesn't work.

  7. Hiranthi
    Member
    Posted 5 years ago #

    Wouldn't the wp_loginout() function do exactly what you want?

  8. tomcho
    Member
    Posted 5 years ago #

    Have you checked here yet?

    http://codex.wordpress.org/Template_Tags/wp_logout_url

    My problem is that I've already done this change and I still can't log out.

  9. MichaelH
    Member
    Posted 5 years ago #

    Could always try deleting the cookie from your domain.

  10. sergioalva
    Member
    Posted 5 years ago #

    Tomcho's response worked for me - it generates the nonce code and log you out...

    Have you checked here yet?

    http://codex.wordpress.org/Template_Tags/wp_logout_url

    My problem is that I've already done this change and I still can't log out.

    If you don't want to go there the code is:

    <a href="<?php echo wp_logout_url(); ?>">Logout</a>

  11. af3
    Member
    Posted 5 years ago #

    i'm calling logout from an external forum; so that a user is logged out from the forum and then redirected further to the wordpress logout.

    in the past, i just redirect the forum logout to wp-login.php?action=logout and all is ok.

    with this wp_logout_url change, how can i get this done?
    i tried using wp-login.php?loggedout=true but it seems not working; even if the users get the 'you are now logged out' msg, user is in fact still logged in in wp.

    rgds

Topic Closed

This topic has been closed to new replies.

About this Topic