Ignore:
Timestamp:
2013/05/02 18:11:36 (11 years ago)
Author:
h_yoshimoto
Message:

#2236 2.12.3リリース以降の2.12-devへのコミット差し戻し

File:
1 edited

Legend:

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

    r22567 r22796  
    2323 
    2424/* セッション管理クラス */ 
    25 class SC_Session  
    26 { 
     25class SC_Session { 
    2726 
    2827    /** ログインユーザ名 */ 
     
    4544 
    4645    /* コンストラクタ */ 
    47     function __construct() 
    48     { 
     46    function __construct() { 
    4947        // セッション情報の保存 
    5048        if (isset($_SESSION['cert'])) { 
     
    6765    } 
    6866    /* 認証成功の判定 */ 
    69     function IsSuccess() 
    70     { 
     67    function IsSuccess() { 
    7168        if ($this->cert == CERT_STRING) { 
    7269            $masterData = new SC_DB_MasterData_Ex(); 
     
    8683 
    8784    /* セッションの書き込み */ 
    88     function SetSession($key, $val) 
    89     { 
     85    function SetSession($key, $val) { 
    9086        $_SESSION[$key] = $val; 
    9187    } 
    9288 
    9389    /* セッションの読み込み */ 
    94     function GetSession($key) 
    95     { 
     90    function GetSession($key) { 
    9691        return $_SESSION[$key]; 
    9792    } 
    9893 
    9994    /* セッションIDの取得 */ 
    100     function GetSID() 
    101     { 
     95    function GetSID() { 
    10296        return $this->sid; 
    10397    } 
    10498 
    10599    /** ユニークIDの取得 **/ 
    106     function getUniqId() 
    107     { 
     100    function getUniqId() { 
    108101        // ユニークIDがセットされていない場合はセットする。 
    109102        if (empty($_SESSION['uniqid'])) { 
     
    114107 
    115108    /** ユニークIDのセット **/ 
    116     function setUniqId() 
    117     { 
     109    function setUniqId() { 
    118110        // 予測されないようにランダム文字列を付与する。 
    119111        $this->SetSession('uniqid', SC_Utils_Ex::sfGetUniqRandomId()); 
     
    121113 
    122114    // 関連セッションのみ破棄する。 
    123     function logout() 
    124     { 
     115    function logout() { 
    125116        unset($_SESSION['cert']); 
    126117        unset($_SESSION['login_id']); 
Note: See TracChangeset for help on using the changeset viewer.