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:

call_user_func_array('session_set_cookie_params', $cookieParams);

Add bars to comment the line:

//call_user_func_array('session_set_cookie_params', $cookieParams);

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.

About Rick

Senior Front-end Software Engineer from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.
8 comments

Leave a Reply

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

*
*