Core/Session/Handlers/DatabaseSessionHandler.php
public function read($id)
    {
        $stmt = $this->db->prepare("SELECT session_data FROM " . $this->tableName . " WHERE session_id = :id");
        $stmt->execute(['id' => $id]);
        return base64_decode($stmt->fetchColumn());
    }
public function read($id)
    {
        $stmt = $this->db->prepare("SELECT session_data FROM " . $this->tableName . " WHERE session_id = :id");
        $stmt->execute(['id' => $id]);
        return base64_decode($stmt->fetchColumn());
    }
public function read ( $ id ) { $ stmt = $ this -> db -> prepare ( "SELECT session_data FROM " . $ this -> tableName . " WHERE session_id = :id" ) ; $ stmt -> execute ( [ 'id' => $ id ] ) ; return base64_decode ( $ stmt -> fetchColumn ( ) ) ; }
Read the session

@param int $id
@return string string of the session
Read the session