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

SF Log in using API, redirecting to the site

Is it somehow possible to log in using the API with an external script and then, using this session to redirect the user from this external script right into SF ?
I.e. can I pass the session Id using the requeststring somehow?
Something like
Now whenever I try to do the redirect it will send me straight to the log in screen.

Message Edited by Harmpie on 10-01-2007 05:44 AM

You can put the session ID in the querystring, at least in the way I use it.

One thing you might need to look at is determining what instance of Salesforce the user is using. That is, what is the URL that their account lives on, i.e. or This info can be gathered from the connection object.
Thx for the response. In the meanwhile I figured it out. Using frontdoor.jsp now, which does work.

The solution of redirecting a session to frontdoor.jsp is not working anymore. An error now is displayed:

Your session with Salesforce is invalid. It may have timed out or become corrupted in some other way. You may also receive this error if Salesforce has recently updated its security architecture.

What can I do to resolve this?