function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
myredpointmyredpoint 

What does "/secur/logout.jsp" do? How to redirect to a custom page after logout

Does anyone know what "/secur/logout.jsp" does?  I need to manually perform all of the logout tasks and then redirect to a different page.  Right now the logout.jsp redirects to login.salesforce.com.  I want to use a controller to do the logout tasks and then perform a redirect to something like http://mycustomloginpage.notsalesforce.com.

 

Thanks,

 

George

imuino2imuino2

You can ser the log out page of your site going on the left bar of your org to ->App Setup -> Customize -> Customer Portal -> Settings:

On portal default settings you will find  an Item names Logout URL edit it and put wathever page you want to redirect people after logout.

 

Ignacio.

myredpointmyredpoint

That won't work.  This is not a customer portal.  It's the standard platform user logout action that I want to redirect.

paul-lmipaul-lmi

pretty sure you can only control logout functionality in the portal/sites.  in there, you may be able to use "retURL" as a URL parameter, like most SF platform pages that support it, but I haven't tested that.

shinchishinchi

retURL works but only if the url is a salesforce website, if you try to redirect to a non salesforce page, you will get an error

El SotoEl Soto
Rohit Sharma 12Rohit Sharma 12
You can put return url with logout page:

/secur/logout.jsp?retUrl=YourLoginpageURL
Meenu AroraMeenu Arora
please let me know where and how i can override the /secur/logout.jsp.

I am trying to override the logout functionality for standard salesforce and not for any curstomer portal. Please assist urgently.
Salesforce TechieSalesforce Techie
try this way-
https://www.youtube.com/watch?v=wclOnRXk-Vc