Update session code