update the sessionId to id.