Magento Admin panel in Localhost

You cannot login admin panel in Magento after install magento in your localhost. Go to the app/code/core/Mage/Core/Model/Session/Abstract/Varien.php and then open it. Find
// 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']); } } }
and chang to following
// 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']); } } } */
Now, you can login admin panel in localhost.

Saturn God

Saturn God

working in singapore as iOS Developer. I also love PHP , jQuery. Founder of ornagai.

Archive

2012 (15)
2011 (100)
2010 (118)
2009 (73)
Posterous theme by Cory Watilo