Google+

Pages

Wednesday, May 30, 2012

Magento: Can not login to Magento Admin after installation

Are you not able to login to admin panel of newly installed magento, even there is no error message.

If the domain is not a true domain, then sometimes this problem occurs. Try this solution:

Go to: [Magento Root Folder]/app/code/core/Mage/Core/Model/Session/Abstract/Varien.php

and comment below lines-

'domain' => $cookie->getConfigDomain(),
'secure' => $cookie->isSecure(),
'httponly' => $cookie->getHttponly()

and remember to remove comma(,) from the line above these three.

Cheers :)

Note: Remember that above file is in core Magento folder, so override it using your own package name.

No comments: