deal with the session.