程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> magento 1.6後台無法登錄

magento 1.6後台無法登錄

編輯:關於PHP編程

今天一個客戶說它的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();
         }
*/


  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved