API Session ID
-
- Posts: 14
- Joined: Mon Nov 30, 2015 3:30 pm
API Session ID
Using JSON via the API, is there a way to check whether an API session ID is valid or not? I know you can always just create a new session ID but it seems like a logical approach would be to test whether a session ID is still valid (ie it exists and is not expired) first before requesting a new one.
Re: API Session ID
You can call APIAuthentication->isLoggedIn() to check that.
Alternatively the API will return a SESSION code error if the session has expired, in which case you could just call Login() again.
Alternatively the API will return a SESSION code error if the session has expired, in which case you could just call Login() again.
-
- Posts: 14
- Joined: Mon Nov 30, 2015 3:30 pm
Re: API Session ID
Excellent, thank you sir.