ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 4895


Ignore:
Timestamp:
Jan 10, 2008, 4:13:28 PM (15 years ago)
Author:
ebihara
Message:

#1765:$_SESSIONのキー名をc_member_idにした

Location:
OpenPNE/trunk/webapp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/trunk/webapp/lib/OP.php

    r4443 r4895  
    8686            }
    8787        }
    88 
    89         $_SESSION['c_member_id'] = $c_member_id;
    9088
    9189        return session_id();
  • OpenPNE/trunk/webapp/lib/db/member.php

    r4894 r4895  
    17991799function db_member_c_member_id4username_encrypted($username, $is_ktai = false)
    18001800{
    1801     if (!isset($_SESSION['username'])){
     1801    if (!isset($_SESSION['c_member_id'])){
    18021802        if (!IS_SLAVEPNE) {
    18031803            $username = t_decrypt($username);
    18041804        }
    1805         $_SESSION['username'] = db_member_c_member_id4username($username, $is_ktai);
     1805        $_SESSION['c_member_id'] = db_member_c_member_id4username($username, $is_ktai);
    18061806    }
    18071807
    18081808    // c_member_id の存在チェック
    1809     if (db_member_c_member4c_member_id_LIGHT($_SESSION['username'])) {
    1810         return $_SESSION['username'];
     1809    if (db_member_c_member4c_member_id_LIGHT($_SESSION['c_member_id'])) {
     1810        return $_SESSION['c_member_id'];
    18111811    } else {
    1812         unset($_SESSION['username']);
     1812        unset($_SESSION['c_member_id']);
    18131813        return false;
    18141814    }
  • OpenPNE/trunk/webapp/modules/ktai/do/o_easy_login.php

    r4554 r4895  
    6161        $auth->auth->setAuthData('OPENPNE_URL', OPENPNE_URL);
    6262       
    63         $_SESSION['c_member_id'] = $c_member_id;
    6463        db_member_do_access($c_member_id);
    6564
  • OpenPNE/trunk/webapp/modules/ktai/do/o_login.php

    r4554 r4895  
    6565        }
    6666
    67         $_SESSION['c_member_id'] = $c_member_id;
    6867        db_member_do_access($c_member_id);
    6968
Note: See TracChangeset for help on using the changeset viewer.