Early session time out

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • elvis40
    Junior Member
    • Sep 2016
    • 1

    #1

    Early session time out

    Hi to all,

    My initial login and data retrieval processes all work fine. However, I'm encountering session time-outs well before the 12hr point, randomly between 2 and 3 hours. Obviously my session token has become invalid as I get the response "[{"jsonrpc":"2.0","error":{"code":-32099,"message":"ANGX-0003","data":{"APINGException":{"requestUUID":"ie2-ang01b-prd-04261123-000e01591e","errorCode":"INVALID_SESSION_INFORMATI ON","errorDetails":""},"exceptionname":"APINGExc ep tion"}},"id":1}]" .

    I need to
    1. Handle the Error: Detect the error response with the code -32099 and message "ANGX-0003", indicating an invalid session token.
    2. Create a New Session: initiate a new session by using the API login method. This will generate a fresh session token to replace the expired one.
    3. Ensure Continuous Session: seamlessly handle the creation of a new session token and continue with the required API calls without interruption.
    4. Session Management Best Practices :check I'm using them.
    There's a bit to do there (for an amateur) so I thought I'd ask the collective wisdom whether this was a common problem, any obvious reason for the unexpected behaviour and any known fix. Am I missing something obvious? and any comments on my plan to tackle the problem.

    Thanks in advance for any contributions

    regards,

    Elvis
Working...
X