This page addresses some questions about sessions.
The session maps to a particular user, and all data created has the “Created By” information as that user. Therefore, it is a best practice to use one session per user.
The session times out after two hours (120 minutes).
There is currently no way to verify a valid session. If a session is invalid, the system will return an INVALID_SESSION error, which means that you need to log in again.
This could be because the user's session has reached the two-hour threshold. The code should retry again with the credentials to get a valid session.
Copyright © 2008-2009 Zuora, Inc.