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
hwdavidhwdavid 

Google AppEngine Integration Session

I am connecting my google appenigne app to salesforce (in python) and every so often performing a query to get account details from salesforce. I can login to salesforce via the api.

 

login_result = sforce.login(username, password)

 

and I can perform my query:

 

query_result = sforce.query(......)

 

But I am wondering how I check if my session is still valid? How do I know if it has expried? I noticed a isConnected method in the PtyhonClient but I don't really think that is it. What am I missing? 

 

Thanks

Best Answer chosen by Admin (Salesforce Developers) 
Vinita_SFDCVinita_SFDC

Hi,

 

Please refer following link, addressing same issue:

 

http://salesforce.stackexchange.com/questions/977/check-if-sessionid-is-valid