Four Hour Auto Logoff

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JayBee
    Junior Member
    • Oct 2010
    • 114

    #1

    Four Hour Auto Logoff

    Someone I know of is being automatically logged out of API-NG after 4 hours.

    I know automatic logoff is an option on Betfair's website but is this also happen through the API?

    Personally, I have never been automatically logged off whilst using the API.

    Has anyone else had this problem and if so, how did they solve it?
  • betdynamics
    Junior Member
    • Sep 2010
    • 534

    #2
    Are they using the keepAlive function?

    Comment

    • LiamP
      Junior Member
      • Oct 2015
      • 284

      #3
      I think it was recently changed to log you out after 4 hours, I now always use keepAlive every 3 hours although I don't think I have ever actually been logged out.

      https://api.developer.betfair.com/se...0ni/Keep+Alive

      Comment

      • jabe
        Senior Member
        • Dec 2014
        • 705

        #4
        Had their program not made a single API call in four hours? Or was it still doing stuff?

        Comment

        • JayBee
          Junior Member
          • Oct 2010
          • 114

          #5
          Originally posted by jabe View Post
          Had their program not made a single API call in four hours? Or was it still doing stuff?
          They were just collecting prices for the four hours and then their code started receiving.

          [{"jsonrpc":"2.0","error":{"code":-32099,"message":"ANGX-0003","data":{"exceptionname":"APINGException","AP INGException":{"errorDetails":"","errorCode":"INVA LID_SESSION_INFORMATION","requestUUID":"prdang005-03240957-000c469918"}}},"id":1}]

          as a response string.

          Personally, I have never been logged out and don't use KeepAlive.

          Comment

          • betdynamics
            Junior Member
            • Sep 2010
            • 534

            #6
            I can't comment on why you personally aren't being logged out, but you do need to use the keepAlive function in order to keep the session active.

            Just making calls to the API does not refresh the session (according to the documentation) which is why the call to keepAlive is required.

            Comment

            • jabe
              Senior Member
              • Dec 2014
              • 705

              #7
              This explains what happens
              https://api.developer.betfair.com/se...0ni/Keep+Alive

              The default time is 4 hours and you can change that in your account settings. As has been stated, in a program you can extend it with the Keep Alive call and other calls don't count.

              Comment

              Working...
              X