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).

Thanks,

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

https://suitecrm.com/forum/suitecrm-7-0-discussion/9663-time-session-length#33142

best regards