Magento Can’t login to admin panel.

Magento is an open source CMS for e-commerce based web sites. 
Sometimes, there are problems logging into the backend of our
Magento site, despite the fact that we have not changed our username or
password. We keep on getting the error message:

"Invalid Username or Password"

We've tried resetting the password, but this hasn't worked. We've also
tried clearing our browser cache and cookies, as well trying a different
browsers. But none of these solutions have worked.

Please help me as I have to login to the admin area.


If you are using the correct username and password, please try the below
steps and see if it works for you.

Find app/code/core/Mage/Core/Model/Session/Abstract/Varien.php. in your
Magento install folder and comment out the lines(see below) 80 to 83.
The line numbers may vary.

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


There are no revisions for this post.

Tags: , ,

No comments yet.

Leave a Reply