• Hi all…
    I really need some help…no puns onmy mental ability OK!!!
    I cannot logout of the admin panel. Any ideas as to what may be going wrong?
    I cant login on another computer either or change my password-I get an error msg….would this be related??
    Any help or suggestions would be greatly appreciated

Viewing 15 replies - 1 through 15 (of 19 total)
  • What errors do you get when you click on the LOGOUT link in the admin panel? Post them here and we can try to help you out.
    Regards

    Me Too! No errors whatsoever. I can’t logout and my client can’t login from another ip.
    BUT WAIT! on a whim, I just denied all cookies and then tried the logout and it worked – I got the login screen in response.

    to above, turns out the actual logout didn’t happen.

    cannot logout of admin page either.
    on clicking logout, am redirected to the “Write” page.
    using WP1.2.
    thanks

    I am in the same frustrating boat as you.
    I found some code in the forums suggesting a patch to wp-login.php, but that code is already incorporated into my version (1.2). So basically, this a legit bug, and also a security hole. I plan to be travelling and using WordPress through internet cafes, and I don’t want to leave my blog open to whoever sits and my computer next.
    Anyone have a fix?
    Thanks

    Same here –
    Once installed you can logout but everytime you click login you are logged in as admin until you delete the cookie.
    No other users work either from my pc or elsewhere. If you enter the wrong password you get “Incorrect Password” but if you use the right password you get “Password Field is Empty”.
    Using MySQL 4.0.16-nt, PHP Version 4.3.3, WordPress 1.2
    Ron

    Found this fix and it worked
    Copy the script found at
    https://www.sexygirlgeek.com/share/wp-login.phps
    Backup your existing script, copy this and save it as wp-login.php and upload it.
    Ron

    This code doesn’t work – I still have the same issue as rread described above…

    I have WordPress 1.2.1. I found a solution to enable one to logout. In file wp-login.php
    comment out lines 218 to 223. This works for me. Do NOT delete your cookies. You
    won’t be able to log in.

    @tsbalaban: If deleting cookies prevents one from logging in, how do new users log in ?

    Ok ok, here is what happened for me that fixed the issue…
    First, I applied the code patches to mingus – this wasn’t necessecary for me. What did the trick was changing the site that wordpress was running on. I had just switched domains and had an apache 301 redirect on the old domain to the new. I still had wordpress set to be on the old domain. Because of this, it was not telling the wp-login script to logout when I clicked logout, thus the refresh to another page.
    My suggestion would be that if you are having this issue –
    1. Check and see what your server is set to ( is it the actual server ) ?
    2. Put this code at the top of the logout block in the “action” case statement to see if the logout block is actually being executed :
    echo “Hello Logout”;
    exit ();
    Mine wasn’t, and that eventually led me to realize the server redirection was stripping off hte variables, and not allowing the wp-login to realize that it had just been passed a logout request.

    for those of you who upgraded from pmachine, this plagued me for a while, and then I fixed it 5 minutes ago ??
    Just go into phpmyadmin > wp_options and edit the blogfilename’s optionvalue to read ‘index.php’ (mine was weblog.php) and then go into options, and make sure the site url and blog address url are the same. this fixed it for me, good luck!

    Anonymous

    All,
    I still cannot explain why the whole logout thing doesn’t work, but I did find if you change wp-settings to generate a constant hash for the cookiehash string things work correctly. Change wp-settings.php around line 54 from:
    $cookiehash = md5(get_settings('siteurl'));
    to something like;
    $cookiehash = md5('my_secret_string');
    Where my_secret_string is something unique to your site (your hostname or something like that). I’m pretty sure this doesn’t affect security in any way (since it was getting a constant, publicly known string before the change) but use at your own risk. — Dan ([email protected])

    Anonymous

    It’s definitely related to changing the Blog URL.
    The trick to logout after you made the change:
    Instead of clicking on Logout, just copy the link in the address bar and change the blog URL to the new one and voila!

    Moderator James Huff

    (@macmanx)

    For both login and logout problems, try deleting your WordPress-related cookies.

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘cannot logout of WP’ is closed to new replies.