Sunday, 20 April 2014

Magento : Admin login not working in Chrome

Workaround #1 : Before Installation

Use when you set up magento in localhost. I prefer this one because no need to make any changes in code.

Workaround #2 : After Installation

1. Go to app\code\core\Mage\Core\Model\Session\Abstract\Varien.php file

2. Go to line number 85 and replace

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

code snippet with

// session cookie params
$cookieParams = array(
            'lifetime' => $cookie->getLifetime(),
            'path'     => $cookie->getPath()


Clear browser cache and try again. Hopefully it will work for you as well.

Thanks!!!!!!!! Enjoy Programming :)

No comments:

Post a Comment

Thanks for your valuable comments.

Nginx: Cannot allocate memory