Wordpress admin login loop redirect problem solved
by  $ivateja (223) on December 20, 2009   |   29 Comments | 18,707 views
|
Today i faced the issue “Wordpress admin login loop redirect” and i wasted lot of time to solve this problem, so i want to share with you. I installed Wordpress 2.9 on my site directory. Everything seemed to work fine until I tried to login to the admin console and I get a loop.
When i browse to http://str-Graphics.com/…./wp-admin/
…and it takes me immediately to the same page. i mean it was redirecting to the same page and the admin login loop is going..!
When I was login with my exact username and password then it simply redirects to the same link with out any errors..! and if i use bad password for the admin then it tells me incorrect password this is fine.
What i done:
- some of my friends gave the advice to enable the cookies and verify the setting, i done but no use.
- Finally i got the working solution: There seems to a cookie problem with the core WordPress files. Add this to the top of wp-config.php:
@define(‘ADMIN_COOKIE_PATH’, ‘/’);
- Cheers
You May Also Like
Get Updates:
| |












thank you boss its very usefull.
Hello Ganesh..!
Thanks for your comment on “Wordpress admin login loop redirect problem solved” keep visit the site for more tech updates and miscellaneous as well
Thank you.
thank you a lot boss……………..
your single line code helped me a lot…………..
Hello Ajay,
Wordpress admin login loop redirect is very common problem for the web masters who are using the wordpress,
In fact Our team also faced the same problem,
that’s why we don’t want the others to face this probelm again.,
And now you increased the value of the post by your comments hear, thanks for your comment.
Hi,
Thanxxx a lot. I have been struggling as how to resolve this problem. Your solution finally fixed it.
Thanks a lot once more. Cheerssss!!!!!!!
Hello mate,
We are really glad to hear this
Login loop redirection is default problem in wordpress, but i don’t know why wordpress theme is not suppose to fix this finally.
Any way thanks for sharing your glad.
Thanks a lot this worked!!!!
Ivan
Hello Ivan,
Glad to share your feedback..,
Admin login loop redirecinon look very simple problem but its tedious.
Any way hope you enjoyed…!
Keep in touch with our blog for more updates just like this..
Thank you
Jaswanth ( str Team )
good solution thank you.
You welcome my friend..
Yes, thank you!
You welcome my friend…!
Thanks a lot, I had the same problem. Now it’s solved
Hello friend,
Really glad to hear, that this post is helped to you a lot….
hi there,
I’ve got the same problem: the site is running but when I try to login it send me to the same login page. got also a similar problem for the pwd recovery page.
I trued to copy your line in my wp-config.php file but this didn’t work. is it possible do I copy it in the wrong place?
Hi Davide,
The process which i have given is absolutely correct…, just copy that line and paste in wp-config.php,
Better to paste that line at top most place….!!
And enjoy.., still if you face any problem just comment your problem, we always glad to help you.
Should this go ABOVE the opening php code?
Had this same problem, your fix works like a dream – many thanks
You welcome my friend…!
Enjoy str
oh. also, If you find you just can’t login and need to get in before applying this fix, try going to yoursitename.com/wp-login.php and not /wp-admin
This doesn’t work for me.
I am running WP 3.1.3 on a Microsoft IIS server.
Any special solution to deal with this on an IIS server?
Thanks!
Thanks! Perfect instructions, and a deep and thorough analysis of what is what in regards to this problem. I appreciate you taking the time to really detail it out for the rest of the internet.
Thank you lol coolllll
Thanks for this tip but I couldn’t get it to work. Everywhere I put that comment it created an error. In the end I just went into my temp internet files, found all the cookies and everything from the site, took the login details from the existing config file and copied them into the wp-config-sample.php file and replaced the existing config and it worked. I was back in.
There was a clue and that was that Firefox was able to get in but IE couldn’t so I suspected cookies.
My tip for this is…delete all relevant cookies and try again.
Bill
i have a question when i login into admin panel then it redirects me to the webpage of my site no tothe dashboard.. how can i redirect it to the dashboard.
solution is what i explained in this post dude
THANK YOU! Worked perfectly. Been beating my head into a wall for hours!!!!
This site also provided me some insight when I was locked out of the file till I found your solution:
http://www.velvetblues.com/web-development-blog/wordpress-url-settings/
Adding the “update_option” code to the themes’ function.php file enabled me to get back into the wordpress admin and change my settings.
You welcome Cherissa, any ways thanks for sharing that link for our visitors..
Hah yes, its really critical issue i too felt like you the time when i get that issue. Any ways really happy that its helping to all