Take the 2-minute tour ×
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

I want to have hyperlink on my VF page and this page has to be shown on customer portal. The hyperlink will imitate logout functionality. I used following url "/secur/logout.jsp" but it is not working. Am I missing anything here?

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

This should work:

"{!$Site.Prefix}/secur/logout.jsp"

Its what salesforce generates when you set up a force.com site.

share|improve this answer
    
+1 .Glad to see this answer ! –  Mohith Kumar Feb 14 '13 at 9:02
add comment

Use href="/secur/logout.jsp" in anchor tag

and if u want to do in ccontroller use

return new PageReference('/secur/logout.jsp');

Hope this will work for u:-)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.