Usually after transfer to another hosting account or change of domain name you are not able to login to magento admin panel. To fix this you will need to make changes in core_config_data table of magento database. You can either do it from PHPMyAdmin or directly from MySQL command line interface
[plain][/plain]
web/secure/base
web/unsecure/base
web/cookie/cookie_domain
web/cookie/cookie_path
[plain][/plain]
Alternative Solution:
You can directly modify the app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file and make the below changes
Old Code
[php]
$cookieParams = array(
‘lifetime’ => $cookie->getLifetime(),
‘path’ => $cookie->getPath(),
‘domain’ => $cookie->getConfigDomain(),
‘secure’ => $cookie->isSecure(),
‘httponly’ => $cookie->getHttponly()
);
[/php]
New commented out code
[php]
$cookieParams = array(
‘lifetime’ => $cookie->getLifetime(),
‘path’ => $cookie->getPath()
// ‘domain’ => $cookie->getConfigDomain(),
// ‘secure’ => $cookie->isSecure(),
// ‘httponly’ => $cookie->getHttponly()
);
[/php]
Leave a Reply