Skip to main content
7 votes
Accepted

how to logout from lightning community

Please use below code to redirect to community login page : window.location.replace("<community-domain>/secur/logout.jsp?retUrl=<redirect-URL>"); Eg: window.location.replace("/...
Nandan N's user avatar
5 votes
Accepted

Logout Timer in Marketing Cloud/Exact Target

You can change this setting like this: Hover over your name (top right corner) Click on Administration Navigate to Security -> Security Settings Click Edit Select the desired timeout Click Save
Markus Dang - formerly Slabina's user avatar
4 votes
Accepted

How to logout from a Digital Experience (AKA Community) using LWC?

This is the workaround I found using the very convenient fetch API to do the logout part: async logout() { // Logout const logoutUrl = await getLogoutUrl(); await fetch(logoutUrl); //...
Keith C's user avatar
  • 136k
4 votes

Using SOQL, how can I tell which users are CURRENTLY logged into Salesforce

You can query the AuthSession object to get the active sessions, which will include any that haven't ended due to timeout or the user explicitly logging out. There will generally be multiple ...
xn.'s user avatar
  • 2,468
2 votes

How to logout an user from the connected app?

You need to "revoke" the token that was granted to your connected app by sending a POST to the following URL: https://login.salesforce.com/services/oauth2/revoke Example: POST /revoke HTTP/1.1 ...
dana's user avatar
  • 1,167
2 votes

Salesforce Customer Community and EC (error code) 301 Redirect

To answer question number 2, for lightning communities (Napili Template), access Administration under Workspaces, and you can access sitestudio by going to Pages > Sitestudio.com: and then Site ...
glls's user avatar
  • 20.2k
2 votes

Internal salesforce.com error while trying to access trigger.new context variable

One of the first things to try when using standard SObjectTypes that are not of the run-of-the-mill variety is to consider whether your class is of an older version than when that SObjectType was ...
cropredy's user avatar
  • 71.9k
2 votes
Accepted

Salesforce Single Logout (SLO) configuration with multiple relying party

Since nobody responded yet therefore answering my own question for other's benefit. Based on my analysis what I learnt is that just by selecting 'openid' scope in the OAuth based Connected App doesn't ...
LakhanP's user avatar
  • 831
2 votes

how to logout from lightning community

I spent some time to find a nice solution for custom logout. All you need to do is only fire event from the aura. The community has event listener in logoutHandler.js file. $A.get("e.force:...
Piotr Gajek's user avatar
  • 2,764
1 vote

Multiple users and one device, logged in/logged out use cases for contact key registration

Multiple users on a single device is not a supported use-case with SFMC Push. SDK does not handle the login/logout scenarios. Since the deviceId would be static for the installation, Setting the ...
Srikanth Nama's user avatar
1 vote

Matching SessionId from SessionManagement Class to SessionKey from LogoutEventStream

The Platform Event runs as a separate transaction and as Automated Process user so it makes sense there is no match between value in the PE and the current trigger user's session So, this is how I ...
cropredy's user avatar
  • 71.9k
1 vote

Capture session timeout event

As per Salesforce documentation, LogoutEventStream records logouts, not timeouts. Timeouts don't cause a LogoutEventStream object to be published. If users close their browser during a session, ...
Jaime's user avatar
  • 11
1 vote
Accepted

SSO with Salesforce and Azure AD - disable single logout

In Salesforce admin console under Single Sign-On Settings, edit your Azure AD config and uncheck Single Logout Enabled.
identigral's user avatar
  • 7,663
1 vote
Accepted

Salesforce as identity provider - implementing Single Logout (django + pysaml2)

TL;DR: Don't use Single Logout (SLO) in SAML. Terminate your app's local session and that's it. Full story: SLO might work under a number of carefully curated assumptions. In practice there are a ...
identigral's user avatar
  • 7,663
1 vote

Community logout page redirects to Salesforce.com homepage instead of custom URL

You can use this /secur/logout.jsp?retUrl=https://google.com/. Here google.com is just an example. You can redirect to the URL you want. Ideally I would expect to do the way you've done but the above ...
Ansuman's user avatar
  • 106
1 vote

how to logout from lightning community

Found info elsewhere if it may help: https://simplysalesforce.com/2016/02/24/custom-logout-button-on-lightning-component-in-community/ window.location.replace("https://YourCommunityDomain/servlet/...
Sunil Kumar's user avatar
1 vote

Query last user activity

You can do somthing like this CustomSession__c customSession = [select Id, LastActivityDateTime__c from CustomSession__c where UserId__c =:currentLoggedInUserId order by LastActivityDateTime__c desc ...
Purushottam Bhaigade's user avatar
1 vote

How to logout an user from connected app?

I would assume that you would revoke the current token that has been granted based on following the OAuth flow with the connected app. If you review Revoking OAuth 2.0 Access Tokens and Refresh ...
techbusinessman's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible