Extended IOManager._confirm().

The method now consults Session.confirm before acting.