If you need to display the login link on the portal after a user has logged out, Angela has posted how to do it here:

http://blogs.sas.com/content/bi/2010/11/23/save-user-frustration-by-adding-the-magic-log-back-in-button/