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

前端 未结 15 2774
自闭症患者
自闭症患者 2020-12-04 14:23

I am just a newbie to the magento. I have installed magento on my localhost. After all the setup when I used the admin page to login I can\'t able to login in chrome browser

15条回答
  •  自闭症患者
    2020-12-04 15:15

    GO to File at this location :- app\code\core\Mage\Core\Model\Session\Abstract\Varien.php

    And commenting out the following (it's lines 85 to 102);

    // session cookie params
    $cookieParams = array(
        'lifetime' => $cookie->getLifetime(),
        'path'     => $cookie->getPath()//,
        //'domain'   => $cookie->getConfigDomain(),
        //'secure'   => $cookie->isSecure(),
        //'httponly' => $cookie->getHttponly()
    );
    
    //if (!$cookieParams['httponly']) {
    //    unset($cookieParams['httponly']);
    //    if (!$cookieParams['secure']) {
    //        unset($cookieParams['secure']);
    //        if (!$cookieParams['domain']) {
    //            unset($cookieParams['domain']);
    //        }
    //    }
    //}
    

    And use your credentials to logged in. Hope that should works for you!!!

提交回复
热议问题