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
CovenantCovenant 

session_id is expiring, how is "activity" determined?

Hello,

I know that a session_id isn't supposed to expire unless there is no activity for a two hour timeframe.

I wrote a script to access SalesForce.com to add a huge number of attachments. Every two hours, like clockwork, the script would fail with an "invalid session_id".

I've since changed the script to obtain a new session for every attachment and things are working fine.

I don't have a big problem, but I'd like to know how "activity" is defined or detected on your end. I'm using Python XMLRPC, which is identified as "other sforce API" by Salesforce.

Thanks, in advance, and Best Regards,

Covenant
IspitaIspita
What precisely are you aiming to achieve and what is the information about sessions that you are seeking please do highlight,
Thanks,