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
sq2sq2 

login to salesforce.com using session id

Hi,

 

I know we can use parameter un and pw to login to salesforce.com website

https://login.salesforce.com/?un=username&pw=password

 

My question is can we login to salesforce.com website without using username and password,

but using a sessionid and endpoint url from api login, so it would like

https://login.salesforce.com/?url=xxx&sid=yyy

 

Thanks.

 

Best Answer chosen by Admin (Salesforce Developers) 
vswamidassvswamidass

Yes, here is the URL to use:

https://<endpoint host>/secur/frontdoor.jsp?sid=<session id>"

All Answers

werewolfwerewolf

No, because the API sessionID and the UI sessionId are two different things.  This prevents hackers from grabbing your web sessionId somehow and then using it to log into the API and download vast quantities of data.

werewolfwerewolf

There are, however, single signon capabilities in Salesforce.com.  Perhaps you should look into those.

vswamidassvswamidass

Yes, here is the URL to use:

https://<endpoint host>/secur/frontdoor.jsp?sid=<session id>"

This was selected as the best answer