Changeset 21968


Ignore:
Timestamp:
2012/07/19 17:20:01 (12 years ago)
Author:
shutta
Message:

#1895 (フロント> ログアウト時のログにcustomer_idが記録されていない)
customer_idがきちんと記録されるように修正。

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/SC_Customer.php

    r21867 r21968  
    210210    // ログアウト $_SESSION['customer']を解放し、ログに書き込む 
    211211    function EndSession() { 
     212        // セッション情報破棄の前にcustomer_idを保存 
     213        $customer_id = $_SESSION['customer']['customer_id']; 
     214 
    212215        // $_SESSION['customer']の解放 
    213216        unset($_SESSION['customer']); 
     
    218221        $objSiteSess = new SC_SiteSession_Ex(); 
    219222        $objSiteSess->unsetUniqId(); 
     223 
    220224        // ログに記録する 
    221         GC_Utils_Ex::gfPrintLog('logout : user='.$this->customer_data['customer_id'] ."\t".'ip='. $this->getRemoteHost(), CUSTOMER_LOG_REALFILE, false); 
     225        $log = sprintf("logout : user=%d\tip=%s", 
     226            $customer_id, $this->getRemoteHost()); 
     227        GC_Utils_Ex::gfPrintLog($log, CUSTOMER_LOG_REALFILE, false); 
    222228    } 
    223229 
Note: See TracChangeset for help on using the changeset viewer.