if you are using on-logon trigger then you may not need to kill the session at all. Simply do not execute the default functionality trigger, depending upon your condition.