Subversion Repositories cheapmusic

Rev

Rev 26 | Rev 31 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26 Rev 28
Line 120... Line 120...
120
        $access = mysqli_real_escape_string(self::$_sess_db, time());
120
        $access = mysqli_real_escape_string(self::$_sess_db, time());
121
        $encrypted = Cryptor::Encrypt(json_encode($_SESSION));
121
        $encrypted = Cryptor::Encrypt(json_encode($_SESSION));
122
 
122
 
123
        $sql = "REPLACE
123
        $sql = "REPLACE
124
                INTO    sessions
124
                INTO    sessions
125
                VALUES  ('$id', '" . self::getSessionTab() . "', '$access', '$encrypted', '')";  //bugbug userId
125
                VALUES  ('$id', '" . self::getSessionTab() . "', '$access', '$encrypted', NULL)";  //bugbug userId
126
 
126
 
127
        if (!($result = mysqli_query(self::$_sess_db, $sql))) {
127
        if (!($result = mysqli_query(self::$_sess_db, $sql))) {
128
            error_log("MySQL Write Session Error: " . mysqli_error(self::$_sess_db));
128
            error_log("MySQL Write Session Error: " . mysqli_error(self::$_sess_db));
129
        }
129
        }
130
 
130