Fix magento admin login failing in chrome browser

Login failure in chrome even though you have given correct username and password?
Just follow to code to access admin page in chrome browser.

Look for the line in app\code\local\Mage\Core\Model\Session\Abstract\Varien.php file.

[code lang="php"]
if (isset($cookieParams['domain'])) {
$cookieParams['domain'] = $cookie->getDomain();
}
[/code]

If you have found just replace that line with the follwing code

[code lang="php"]
if (isset($cookieParams['domain']) && !in_array("127.0.0.1", self::getValidatorData())) {
$cookieParams['domain'] = $cookie->getDomain();
}
[/code]

In this way we can fix magento admin login failing in chrome browser

Source: How to Fix Magento’s Admin Login Failing no error message on Localhost « My Silly Point of View.

Comments

Post a Comment

Popular posts from this blog

Send email from xampp localhost

Modify item price in cart after placing order using sales_quote_add_item

Convert long url to short url using tinyurl api