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?


This should work:


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


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:-)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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