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.
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.
Replace example.com below with your URL
Thanks
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.
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
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.
Wouldn't the wp_loginout() function do exactly what you want?
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.
Could always try deleting the cookie from your domain.
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>
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
You must log in to post.