You need to sign in to do that
Don't have an account?
SV
Session Expiration
We have an Sforce 5.0 Partner API client that uses a Web Link to get the sessionID from the SF UI. We do not use the Sforce login call as we do not have the username and password for the SFDC account.
For long running ETL tasks, the Sforce session seems to timeout based on expiration setting in the UI (2 hours) irrespective of the activity. How can we keep the session alive until we are done with the ETL, given that we cannot get a new session id via the login call.
thanks
PS: A similar topic was discussed earlier, here is the link
We will get to fixing this session timeout in the API one of these days.
I finally ended up coding around this... It's UGLY and not recommended unless you really really really have to do it...
It was explained to me, back before 5.0, when I was dealing with this that the UI will update the session when one half of the session has expired. In other words for a 2 hour expiration the next page load after the first hour will get a new session ID sent.
First, you can presume that if the WIL link is 'fresh' you have about 1 hour of time at a minimum before your session could expire. What I did is 15 minutes before that (45 minutes into the app) I start a new UI session behind the scenes in my app (c# HttpRequest) by passing that session ID to frontdoor.jsp and getting the homepage of the UI. I compare the session cookies set (if any) to see if the UI is trying to rewrite the session ID and capture that. Wash, Soak, Rince and Repeat every hour or so and you can keep going without problems.
We'll try to come up with something to make this less painful.
Thanks Benji!
P.S. Anyone want to reimburse the bill from my proctologist?
How can the organization's timeout setting be retrieved?
Is there a refreshSession() method to call via the API?
What release was it implemented in?