Session.php
public function read($id)
    {
        //TODO - if ip has changed and session id hasn't invalidate
        $stmt = Database::database()->prepare('SELECT session_data FROM sessions WHERE session_id = ?');
        $stmt->execute([$id]);
        return $stmt->fetchColumn() ?: '';
    }
public function read($id)
    {
        //TODO - if ip has changed and session id hasn't invalidate
        $stmt = Database::database()->prepare('SELECT session_data FROM sessions WHERE session_id = ?');
        $stmt->execute([$id]);
        return $stmt->fetchColumn() ?: '';
    }
read
@param string $id
@return string