You can easily log out of Yahoo Mail, and the entire Yahoo Network with this URL. You can bookmark it or simply type it into your browser. The URL to log out of Yahoo is: http://login.yahoo.com/?logout=1
Of course Yahoo won’t even let you logout without showing you at least one ad.