2

After installing Magento admin panel cannot log in. 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 even with my right username and password

pbaris
  • 4,525
  • 5
  • 37
  • 61
MrToken
  • 87
  • 1
  • 2
  • 5

4 Answers4

4

I found this solution : Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory and comment out these 3 lines of code : Also the comma must be removed from the file .Save it and try to login to your magento admin panel.

// 'domain'   => $cookie->getConfigDomain(),
// 'secure'   => $cookie->isSecure(),
// 'httponly' => $cookie->getHttponly()
Tushar ani
  • 600
  • 1
  • 5
  • 11
0

first check your local server (like wamp, xammp etc) is working correct second chack your appache configaration port is 80 .... and third goto magento directory and see if manifast.flag file in that directory delete it ...

Ankit Gujarati
  • 685
  • 6
  • 6
0

Try it in Firefox , I have faced the same issue but when i tried in Firefox i logged in successfully.

visit2shobhit
  • 183
  • 1
  • 4
  • 15
-1

it happens to me after installing everytime, find this file: 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']);
//        }
//    }
//}
pabbasian
  • 89
  • 11