I tried your suggestion and no matter what the user choice was I get the message "logg yo ass off"

I think I made a mistake by explainng what I needed.
If the user click the No button on the meesagebox I want the user to logoff automaticlly with out any choice on the user side.

why did you use the value 6? where can I find more information on that

thanks