+ 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