Wordpress admin login loop redirect problem solved

by  $ivateja (223) on December 20, 2009   |   29 Comments | 18,706 views


wordpress_login_redirectHello guys,

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

  • No Related Post


Get Updates:
Enter your email :
     
    For getting updates directly to your mobile inbox Click Here



Comments

29 Responses to “Wordpress admin login loop redirect problem solved”
  1. Ganesh says:

    thank you boss its very usefull.

  2. jaswnath says:

    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.

  3. ajay says:

    thank you a lot boss……………..
    your single line code helped me a lot…………..

    • $ivateja says:

      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. :D

  4. phpgeek says:

    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!!!!!!!

    • $ivateja says:

      Hello mate,

      We are really glad to hear this :D

      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.

  5. Ivan says:

    Thanks a lot this worked!!!!

    Ivan

    • jaswanth says:

      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 )

  6. good solution thank you.

  7. MeetTheSun says:

    Thanks a lot, I had the same problem. Now it’s solved :)

  8. davide says:

    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?

    • $ivateja says:

      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.

  9. Should this go ABOVE the opening php code?

  10. James says:

    Had this same problem, your fix works like a dream – many thanks

  11. Mark Snape says:

    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

  12. PB says:

    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!

  13. 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.

  14. WSOHelp.com says:

    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

  15. sanjeev says:

    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.

  16. Cherissa says:

    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.

Speak Your Mind

Tell us what you're thinking, If you want a pic to show with your comment, go get a gravatar !






Search:


strPro Plus WP Theme [$71.36]

Buy this Highly adsense Optimised
Wordpress Theme - Increase Your
Adsnese Income Up To 200%



Contact us: strkgroups@gmail.com
Contributers:

» sivateja
» Jaswanth

[ Total of 309 posts by Feb 05, 2012 ]

wordpress visitors