logging out of customer portal using a button

1. On button click, redirect the user to the url provided in below example to log out of customer portal.


public PageReference LogOut() {
return new PageReference('/secur/logout.jsp');
}

2. You can also try this for html link


Logout

Published by Sandeep Kumar

He is a Salesforce Certified Application Architect having 11+ years of experience in Salesforce.

Leave a Reply