Magento Admin Panel Login Problem 

Magento! : ECOMMERCE PLATFORM FOR GROWTH …. recent days, Magento became most popular CMS for ecommerce.Recently when i started work with magento, fallen in problem regarding login to admin panel.

There are several issues to consider :

  • Using in place of localhost for your base url when going to setup in localhost.
  • Best way is using IP, like your PC IP address or default
  • Use instead of localhost while db configuration in installation (may fix the problem)
  • For cookie related issue, please properly enable your browser cookie settings.
  • Finally check out for both ‘mod rewrite option’ and ‘base url validation option’ during installation.

** Recently I got another useful solution during installation of magento in another PC. The solution is to modify the core Magento code.

> Open app/code/core/Mage/Core/Model/Session/Abstract/Varien.php.

> Comment out the lines 80 to 83. The line number may vary in different magento version. But these lines exist near to line 80. You need to comment the comma (,) in line:: $this->getCookie()->getPath()//,

For Magento 1.4 or greater than 1.4 :

you have to comment code from line 86 to 98 in app/code/core/Mage/Core/Model/Session/Abstract/Varien.php. Like this:-

This may be helpful for beginners who are gonna to start magento.