Can’t Log In Magento Admin

After installing Magento locally I could not login to my Admin panel. Using the correct password it was just refreshing the login page every time.

Look for the file:

/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php

Arroud the line 100:

Add bars to comment the line:

Done!

Now you will be able to login.

Please notice you should avoid touching core files at any cost. If you ever update, you’ll lose the changes.

Tags:

8 Responses to “Can’t Log In Magento Admin”

  1. samueljesse September 22, 2011 at 4:19 pm #

    thanks for the tip – this fixed my install on mamp

    • Rick September 23, 2011 at 4:51 pm #

      Glad it helped ! πŸ˜‰

  2. Selva January 12, 2012 at 8:42 am #

    Thanks man it’s working good…..

  3. Rupa March 16, 2012 at 6:51 pm #

    This was a lifesaver. Thank you!

  4. Johnny October 26, 2012 at 5:12 am #

    No luck here is my code I can’t login to the backend any advice for Magento 1.7

    • nitin April 6, 2013 at 6:40 am #

      //β€˜httponly’ => $cookie->getHttponly()

      Remove the cache and then try to login

  5. James May 15, 2013 at 4:08 pm #

    Thank you, been looking for this solution for a little while πŸ™‚

    • Rick May 15, 2013 at 7:47 pm #

      Glad it worked for you! πŸ˜‰

Leave a Reply

Add <code> Some Code </code> by using this tags.