magento 1.6后台无法登录_PHP教程

WBOY
Freigeben: 2016-07-20 11:10:21
Original
771 Leute haben es durchsucht

今天一个客户说它的magento 1.6后台无法登录,找了好久才找到解决办法 ,这是从网上找到,希望同样出现这种问题朋友能够参考一下。

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教程


// session cookie params
     

   $cookieParams = array(
            'lifetime' => $cookie->getLifetime(),
            'path'     => $cookie->getPath(),
            'domain'   => $cookie->getConfigDomain(),
            'secure'   => $cookie->isSecure(),
            'httponly' => $cookie->getHttponly()
         );

         if (!$cookieParams['httponly']) {
            unset($cookieParams['httponly']);
             if (!$cookieParams['secure']) {
                unset($cookieParams['secure']);
                 if (!$cookieParams['domain']) {
                    unset($cookieParams['domain']);
                }
             }
         }

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

         if (isset($cookieParams['domain'])) {
             $cookieParams['domain'] = $cookie->getDomain();
         }
*/


www.bkjia.comtruehttp://www.bkjia.com/PHPjc/444744.htmlTechArticle今天一个客户说它的magento 1.6后台无法登录,找了好久才找到解决办法 ,这是从网上找到,希望同样出现这种问题朋友能够参考一下。 ma...
Verwandte Etiketten:
Quelle:php.cn
Erklärung dieser Website
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn
Beliebte Tutorials
Mehr>
Neueste Downloads
Mehr>
Web-Effekte
Quellcode der Website
Website-Materialien
Frontend-Vorlage
Über uns Haftungsausschluss Sitemap
Chinesische PHP-Website:Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!