PHP Magento Background Cannot login problem Resolution _php instance

Source: Internet
Author: User
PHP Magento Backstage No solution

Many friends may have the same experience, Magento in the server configuration domain name is normal access, but after the local configuration can not log in the background, the account password login when found blank, unable to jump to the background, this article to introduce two ways to solve the local Magento background can not login method, You need a friend to refer to.

Workaround One:

This is a cookie problem, the use of non-IE core browser such as Firefox can solve this problem, although the browser processing cookies in a similar manner but not 100% the same, Magento other versions also have this problem.

The way to fix this problem in detail is to locate: app/code/core/mage/core/model/session/abstract/varien.php.

Around 70 lines you can see similar:

Workaround Two:

Without localhost landing,

Change your IP address to login: for example, Http://192.168.1.100/plus a background address,

You can also point to other addresses in Apache,

This problem is generally not present on the server and is not modified.

magento1.9 Background Can't login problem

Open magento/app/code/core/mage/core/model/session/abstract/varien.php

Find the following code, comment out $cookieparams[' domain ' = $cookie->getdomain (); it's OK.

if (Isset ($cookieParams [' domain ')]) {$cookieParams [' domain '] = $cookie->getdomain ();}

The results are as follows

if (Isset ($cookieParams [' domain ')]) {//$cookieParams [' domain '] = $cookie->getdomain ();}

But after doing this, there was a mistake, so I commented out all the following

if (Isset ($cookieParams [' domain ')]) {//$cookieParams [' domain '] = $cookie->getdomain ();/}

Thank you for reading, hope to help everyone, thank you for the support of this site!

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.