How to use of frontdoor.jsp to Log in using Session Id to Salesforce and Experience Cloud Site

How to use of frontdoor.jsp to Log in using Session Id to Salesforce and Experience Cloud Site

Execute the following apex in Anonymous Apex Execute Window in Developer Console.

Sample Code:

String strURL = URL.getOrgDomainUrl();
strURL += '/secur/frontdoor.jsp?sid=' + UserInfo.getSessionId().SubString(15);
System.debug( 'URL: ' +strURL );

Use the URL to access Salesforce.

Leave a Reply