You need to sign in to do that
Don't have an account?

How to create a logout button!
Logging in to the customer portal is easy, just redirect to the page and force.com does the rest.
But, I can't find any way of logging out! Checked the forums, documentation etc.
Any ideas? Thanks!
You have the example as part of the sample header component:
<apex:outputLink value="{!$Site.Prefix}/secur/logout.jsp" rendered="{!NOT(ISPICKVAL($User.UserType,'Guest'))}">{!$Label.site.logout}</apex:outputLink>
All Answers
You have the example as part of the sample header component:
<apex:outputLink value="{!$Site.Prefix}/secur/logout.jsp" rendered="{!NOT(ISPICKVAL($User.UserType,'Guest'))}">{!$Label.site.logout}</apex:outputLink>
Also nice a simple. :-)
Thanks for the quick response.