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
Making developer's life easy
public PageReference LogOut() {
return new PageReference('/secur/logout.jsp');
}
Logout
He is a Salesforce Certified Application Architect having 11+ years of experience in Salesforce. View more posts