Magento admin login not working in chrome but works fine for firefox Magento admin login not working in chrome but works fine for firefox google-chrome google-chrome

Magento admin login not working in chrome but works fine for firefox


I think there is the problem with session cookie with the chrome browser.So just go through this directory/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php fileand comment out the line from 85 to 92 in magento (1.7.2 for my case). Like this

    // session cookie params   /* $cookieParams = array(        'lifetime' => $cookie->getLifetime(),        'path'     => $cookie->getPath(),        'domain'   => $cookie->getConfigDomain(),        'secure'   => $cookie->isSecure(),        'httponly' => $cookie->getHttponly()    );  */

after that try to make login from your backend. Hopefully you can make login with chrome. This will definitely help you. If you are still facing the problem then just reply me.


try using 127.0.0.1 when you set up magento in localhost. I have also encounter same problem, that's the solution a have made and it works fine.


From System -> Configuration -> General -> Web, set Unsecure and Secure Base URL with IP Address. And try to login again.