Hello Friends !!

Yesterday, when I was starting to work on Magento E-commerce. When I was access Magento after installation, I can’t logged in Admin section.

After long time serching and research in Magento, finally I found the solution and currently I am able to login to admin section. Today I explain you about the problem and the solution.

First of all, what is Magento ?

Magento is one of the Opensource for E-commerce Websites. Its a top level opensource in E-commerce category.

Now time to explain the problem and the solution of the problem.

Problem

While installing magento on xampp version 2.5 you have provided admin username and password. After installation finished you no longer login with your admin account.

In fact in the “Log in to Admin Panel” window whenever you provide wrong password/username combination it displays “Invalid Username or Password.” But whenever you provide correct password it does not show anything.

Though a new url like http://127.0.0.1/magento/index.php/admin/index/index/key/d135be4de664ab83db829120740e058a/

is displayed on the address bar.
Click Here for more details :
Everytime you do this you can’t log in to admin panel.

Reason of the problem

Do you know why this problem occures ? The problem occurs because magneto could not store cookies. We run it as localhost and localhost is not true domain but to store cookies we need a domain. That’s why login stops without saying any word.

Now the time comes for solutions. There are two solutions for this problem which are shown below :

Solutions

First Solution
In different forums I saw they mentioned connecting as http://localhost/magento/index.php/admin will fail but if you connect as http://127.0.0.1/magento/index.php/admin it will work. But in my case IP address in the URL did not work too.

I made it work into whenever I changed my browser. Suppose I installed magento using google chrome browser and I open admin url into my firefox window and it worked. Though in the firefox the url http://localhost/magento/index.php/admin did not work, but url http://127.0.0.1/magento/index.php/admin worked fine.

Second Solution

Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory.

Find the code:

session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath(),
$this->getCookie()->getDomain(),
$this->getCookie()->isSecure(),
$this->getCookie()->getHttponly()
);

and replace with

session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath()
//$this->getCookie()->getDomain(),
//$this->getCookie()->isSecure(),
//$this->getCookie()->getHttponly()
);

After this save the file. And try to login into the admin.

I think it will work now.

– See more at: http://www.phpgenious.com/2010/02/cant-login-into-admin-panel-of-magento-problem-and-solution/#sthash.vji9bdIg.dpuf

if u want read more  :

http://www.phpgenious.com/2010/02/cant-login-into-admin-panel-of-magento-problem-and-solution/

http://www.templatemonster.com/help/magento-cant-login-to-admin-panel.html

http://onlyecommerce.wordpress.com/2013/01/13/magento-admin-panel-login-not-working/

http://www.magentocommerce.com/boards/viewthread/56244/

http://opensourcecmsinfo.com/how-to-solve-magento-admin-login-not-working-at-localhost/

Built in magento: http://www.craftsvilla.com/

Identification: Cntrl+ u (Source code)   skin/frontend .