I would use messagebox

See link for details of use MessageBox

Then you could say if no to message logoff, if yes carry on

Aaron
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields