Keep the API user logged in. "Invalid Session ID"

Hi all,

Is there a way to keep the ‘API’ user logged in?

We are using the Rest API. Very often we get the “Invalid Session ID” error. We can loop through the code and make the login request again but this slows down the response time. So we would like to keep the “API” user logged in(for a minimum 24 Hrs).


the api session is a simple php session, check this post

best regards