Magento can't login in admin with right username and password

前端 未结 11 2473
南笙
南笙 2020-12-24 10:17

I just freshly installed Magento(1.7.0.2) on my localhost(LAMP). Now after installation when I wanted to go for the admin panel it asked me for the username and

11条回答
  •  天涯浪人
    2020-12-24 10:40

         If you are suffering to get logged in with the correct username and password. replace the code with the New code 
    
        Original code:-
        $cookieParams = array(
                    'lifetime' => $cookie->getLifetime(),
                    'path'     => $cookie->getPath(),
                    'domain'   => $cookie->getConfigDomain(),
                    'secure'   => $cookie->isSecure(),
                     'httponly' => $cookie->getHttponly()
                );
    
        New Code:-
         $cookieParams = array(
                    'lifetime' => $cookie->getLifetime(),
                    'path'     => $cookie->getPath()
        /*,
                    'domain'   => $cookie->getConfigDomain(),
                    'secure'   => $cookie->isSecure(),
                     'httponly' => $cookie->getHttponly() */
                );
    File Path :-app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
    

提交回复
热议问题