Skip to main content

Wondering If we can write any script to log out a user. All we want just have a button (not the navigation menu) that would cause the user log out and redirect to the log in page.

Try a button that redirects the user to: https://na22.salesforce.com/secur/logout.jsp It can be a button in a Page title or a navigation item or you can build your own button in a template


Agreed, a simple “Redirect to URL” action with the following relative URL (so it works regardless of the instance you’re on) should do the trick:

/secur/logout.jsp



Thanks Raymond and Zach. That was exactly what we needed.