private function refreshSession($sid)
    {
        $sessionCookie = session_get_cookie_params();
        $expires = time() + $sessionCookie['lifetime'];

        $this->getDatabase()
            ->update('ActiveSessions')
            ->where('id', $sid)
            ->values([
                'expires' => $expires,
                'updated_at' => Utility::unixToDb(time())
            ])
            ->execute();

        return true;
    }