+ Start a Discussion
Manish Anand 10Manish Anand 10 

Overrinding Standard logout button in salesforce

Hi,

Is there anyway, I can overirde standard logout button in salesforce. My requirement is:-
When a user clicks on Logout button, a pop up should appear confirming, if he wants to de-active his salesforce id.Clicking on 'yes' should de-activate his salesforce id.
Any suggestion is highly appreciated.

Thanks.
NagendraNagendra (Salesforce Developers) 
Hi Manish,

I don't think this is possible using out of the box configuration. If you were using Communities it can be configured - See 

http://docs.releasenotes.salesforce.com/en-us/winter15/release-notes/rn_networks_custom_pages.htm

https://help.salesforce.com/HTViewHelpDoc?id=links_override_considerations.htm&language=en_US

Otherwise your options are to:

Try and manipulate the /secur/logout.jsp link with a retUrl parameter. I suspect the retUrl will need to be within the Salesforce domain.

Use the API logout methods.
Without official support attempting to change the overriding Logout button will  be a hack and error prone.

Please mark it as solved if it helps.

Best Regards,
Nagendra.P