Skip to content

PhpCluster

  • Home
  • Want To Learn
    • PHP
    • MySQL
    • JavaScript
    • jQuery
    • AJAX
    • WordPress
  • Web Hosting
    • Best Web Hosting for Developers [2025 Picks + Guide]
    • Best Cheap Web Hosting for WordPress
  • Demos
  • Resources
  • Services

magento admin login not working in chrome

July 12, 2015July 12, 2015 by Verman Babu

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.

 

 

 

Categories Magento Tags admin, login, magento, problem, solutions
how to select mysql column with comma separated value in php
Calling a php function using onclick event

Get Best Web Hosting And Start Your Own Blog

Categories

About Me

Web Developer, Blogger & Online Entrepreneur
Noida, India
Contact Me [at] : mail[at]phpcluster.com

Important Links

  • About
  • Advertise
  • Contact
  • Deals
  • Demos
  • Privacy Policy
  • Resources
  • Services
  • Terms
  • Web Tools

Tags

.htaccess ajax api button connection content css custom data div facebook file fix form function google graph html image javascript jquery json login magento mail mysql onclick opencart password php post product query search secure seo signup site sitemap tutorial upload url validation value wordpress

Affiliate Disclosure

Sometimes we use affiliate links in our content. This will not cost you anything extra but it helps us to offset the costs of paying our writing team. Thanks for your support!
© 2025 PhpCluster • Built with GeneratePress