Ensure that the session is saved.