Magento 1.6 background cannot be logged in_PHP tutorial

WBOY
Release: 2016-07-20 11:10:21
Original
772 people have browsed it

Today a customer said that his magento 1.6 background could not be logged in. It took him a long time to find a solution. I found it online. I hope friends who have the same problem can refer to it.

magento 1.4.x stable has a problem on the login procedure on localhost.
you need to change in app/code/core/Mage/Core/Model/Session/Abstract/Varien.php tutorial


// session cookie params

$cookieParams = array(
'lifetime' => $cookie->getLifetime(),
'path' => $cookie->getPath(),
'domain' => $cookie->getConfigDomain(),
'secure' => $cookie->isSecure( ),
                                                                                                                                                                                                                                                                              ​'httponly']);
if (!$cookieParams['secure']) {

unset($cookieParams['secure']);

if (!$cookieParams['domain']) {
                                                                                                      ($cookieParams['domain'])) {
                  $ cookieParams['domain'] = $cookie->getDomain();
}with
// session cookie params
;getLifetime(),
'path' => $cookie->getPath(),
; // 'domain' => $cookie->getConfigDomain(),
// 'secure '                                          $cookie-> ['httponly']) {

                                                                                                                                                    

                                                                                                                     }
}

if (isset ($cookieParams['domain'])) {
                                                                                                     

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/444744.htmlTechArticleToday a customer said that his magento 1.6 background could not be logged in. It took a long time to find a solution. This is from the Internet Found it, I hope friends who have the same problem can refer to it. ma...
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!