You are here: API Foundations > Coding Overview > Sessions Questions and Answers

Sessions Questions and Answers

This page addresses some questions about sessions.

  1. Do we need to create the Zuora session per user, per request, or do we need to share it across users?
  2. 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.

  3. What is the session timeout value?
  4. The session times out after two hours (120 minutes).

  5. Does the Zuora API provide a method for validating a session (whether the session exists or it has timed out) so that we can create a new session before calling subscribe?
  6. 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.

  7. We are intermittently getting an INVALID_SESSION error while invoking the API. What could be the reason for this?
  8. 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.