» Can’t log out of WP? WTH?

Posted by TheChrisD on Tuesday the 13th of January, 2009 at 7:53:39pm UTC

Alright I just had a very weird thing happen a moment ago. I was logged in on my backend writing stuff and upgrading comment files to use 2.7 features, when I noticed that I was logged out on the frontend. Still logged into backend so tried to log out failed from the backend, and failed. WTF?

It was a really weird thing, given I’m logged in on one side but not the other. Trying to go manually to the login page just brought me to the dashboard, and logging out wasn’t working.

A quick Google search did the trick, since some people on WP.org were mentioning how they couldn’t log out. Now although the thread I picked up was about people having a lack of a working logout link on their theme, another guy did have my problem:

I’m having the same problem with logout. When clicking the logout link in the upper right corner of the control panel, I get a screen that reads “You are attempting to log out of (website name)”
Then there’s hypertext that says Please Try Again. That link takes you back to wp-admin. If I place my cursor in the address bar and hit enter, I get a different screen that reads “You are attempting to logout of (website name). Then it reads “Do you really want to logout?” Here ‘logout’ is hyptertext and adds www.sitename.com/wp-login.php?action=logout&wpnonce=(numbers)

This has been my workaround… to just place cursor in address bar, hit enter, then click the hyptertext that says logout.

This doesn’t appear to have anything to do with my theme as it only calls the wp-login.php script which is nowhere near my theme files.

Why on earth it screwed up like that, I have no idea. I just hope this isn’t a recurring thing…

This post seems to be categorized as: My Sites, Web Stuff
Things I may have mentioned include:

  • http://john010117.com/ John

    Never had this happen to me – maybe a rather obscure cookie bug? Glad you got it fixed though – not being able to log out is a huge security risk.

  • http://joescanlon.net Joe Scanlon

    This happens to me also. I find I need to close all other internet windows first. I mean ones related to my blog.

All opinions or viewpoints expressed on my website are the sole opinion of myself; and do not represent the opinion or viewpoint of any entity related to myself.

To get this page for you, another 32 slave bears were sentenced to 0.653 years of unpaid labour. Well bloody done.
© 2012 TheChrisD - Ranting everyday thanks to WordPress - and possibly some duck tape, scrap metal and chewing gum; not unlike Minmatar ships.
All ranting is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License