+ Start a Discussion

SessionId validity time

Hi All,


What is the validity time of sessionId?


Client applications do not need to explicitly log out to end a session. Sessions expire automatically after a predetermined length of inactivity, which can be configured in Salesforce by clicking Your Name | Setup | Security Controls. The default is 120 minutes (two hours). If you make an API call, the inactivity timer is reset to zero.


Yes. But the sessionid is getting refreshed ~30 minutes. I want to save the sessionid and query the data using the sessionid.