session/Database.php
public function read($id)
    {
        try {
            $result = $this->db->from($this->table)
                ->where($this->columns['id'])->eq($id)
                ->column($this->columns['data']);

            return $result === false ? '' : $result;
        } catch (PDOException $e) {
            return '';
        }
    }
public function read($id)
    {
        try {
            $result = $this->db->from($this->table)
                ->where($this->columns['id'])->eq($id)
                ->column($this->columns['data']);

            return $result === false ? '' : $result;
        } catch (PDOException $e) {
            return '';
        }
    }
public function read ( $ id ) { try { $ result = $ this -> db -> from ( $ this -> table ) -> where ( $ this -> columns [ 'id' ] ) -> eq ( $ id ) -> column ( $ this -> columns [ 'data' ] ) ; return $ result === false ? '' : $ result ; } catch ( PDOException $ e ) { return '' ; } }
Returns session data.

@param   string  $id  Session id

@return  string
Returns session data .