update session class