Add an oncomplete that is performed per session.