disable calls to reset_session! in global after hook