Expertwebadvisor

  • Magento 2
  • PHP
  • WordPress
  • MySQL
  • SEO
  • Java Script
  • Others
  • Top 10’s

Admin Login Problem After Fresh Magento Installation

By Expertwebadvisor | Last Updated: November 26, 2012 | In: Magento


First time When I was start working on the Magento, I have installed Magento on my local system and installation process has been completed successfully. I faced one very strange problem after fresh installation, I can not logged in Admin section. After searching in Magento community, finally I found the solution, here is the steps to get rid of such kind of the problem.
Admin Login Problem After Fresh Magento Installation

First Solution

Replace the http://localhost/magento/index.php/admin from the i.p. address of the localhost then it will look like as http://127.0.0.1/magento/index.php/admin. 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 your Magento Installation directory and navigate to the app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file.

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 I think it will work now.

Tags:Admin Login Problem In Magento,Magento


Related Posts

  • Cannot initialize the indexer process in Index Management In Magento Cannot initialize the indexer process in Index Management In Magento
  • Creating and Displaying a static block in Magento Creating and Displaying a static block in Magento
  • Enable Template Path Hints In Magento Enable Template Path Hints In Magento
  • Index Management In Magento 2 Index Management In Magento 2
  • Be Social, Share Us Here !!

  • Looking For Something !!

  • Popular Categories !!

    • Magento 2 Guide and Tutorials
    • Home Loan EMI Calculator
    • Car Loan EMI Calculator
    • Personal Loan EMI Calculator
    • Magento Guide & Tutorials
    • PHP Tutorials
    • WordPress Tutorials
    • SEO Tutorials
    • MySQL Guide
    • Opencart Tutorials
    • Linux/Ubuntu Guide
  • About Us
  • Contact Us
  • Disclaimer
  • Privacy Policy
  • Facebook
  • Twitter
  • DMCA.com Protection Status

Recent Posts

  • PHP array_​diff_​key Function
  • PHP array_​diff_​assoc Function
  • PHP array_​diff Function
  • PHP array_​count_​values Function
  • PHP array_​combine Function

Welcome to my Blog

Thanks for visiting my Blog, I have started this blog before 8 years ago and sharing my own experience, problem and solutions while working on the different type of projects. Enjoy the reading and don't forget to Facebook likes, Tweets or G+. You can also write me expertwebadvisor@gmail.com
© 2013 - 2025 Powered By
Top