magento admin login not working in chrome
hello friends !!
few days ago I have installed a Magento software on my system for using a theme. My setup has installed successfully and I move to frontend and backend and see the display everything was perfect. Now when i tried to login to backend mean Magento admin then after enter of correct username and password my webpage redirected to admin login page again and again. I can’t get login access of admin with correct username and password.
After spent of some time on this thing finally i got its solution and currently I am able to login admin panel. Today I am explaining you the problem and its solution.
First thing you should know
what is Magento????
Magento is an OpenSource platform for development of Ecommerce Website.
Problem
When you install Magento on Xampp with Username and password and it successfully installed and configured on your system. But when you try to login to admin panel with same username and password login page redirected on itself everytime without displaying any error message or notice and when you enter wrong username and password it gives error message of validation like Wrong username or password.
Why this problem occurs??
Are you aware about the reason of this problem. Magento couldn’t store cookies.We run Magento on localhost and localhost is not true domain to store cookies we need a domain to store cookie in it.That is why you couldn’t get login.
Solutions:
1st solution
Please check your url of admin login you are using http://localhost/magento/index.php/admin
Just try to use url of login http://127.0.0.1/magento/index.php/admin
You will get admin login access fine.
To change it permanenly for Magento access of admin Just move to
Goto System->Configuration->Web. Expand the tab Unsecure and Secure . Change the Base URL to http://127.0.0.1/[Your folder name] if you are using localhost or change it to your webSite URL through which you are accessing the frontend.
2nd solution
Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento root directory.
Find the code shown below:
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()
);
Now save the file. And try to login into the admin Panel after clearing your browser cookie and Cache.