Admin Panel is one of most necessary or important part of megento like any other eCommerce. Sometimes after installing magento or after installing new theme we can’t login to magento admin panel using correct username and password and it does not show any error message .
If you face this kind of login problem in magento even using correct username and password , please do the below steps to solve magento login problem.
- Open your magento admin in a new browser (like if you faced magento admin login issue of firefox , than open magento admin panel in chrome.) or open admin in Private Window (in firefox , go to “File” and click on “New Private Window”) / incognito mode in Google chrome. Enter your correct username and password .
- If the above step will not work, open your hosting panel and go to “/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php” . Now edit the “Varien.php” and find the session cookie code (line number 86). The session code look like the below code and you need to comment those code .
// session cookie params
/* $cookieParams = array(
‘lifetime’ => $cookie->getLifetime(),
‘path’ => $cookie->getPath(),
‘domain’ => $cookie->getConfigDomain(),
‘secure’ => $cookie->isSecure(),
‘httponly’ => $cookie->getHttponly()
Now open your magento admin again and login with your correct username and password. Hope this time you will able to login and there will be no more login issue on magento admin.