update session struct