1

Keep session alive on IP changes

(12/09/2017 22:07:40 отредактировано hhamedk)

Тема: Keep session alive on IP changes

Dear all

We are developing a smartphone application and we use Remote API in our application. As IP changes time to time when you use mobile networks and traveling, our session (SID) expires on IP changes and we have to login to app again. We tested Wialon Mobile Application and it seems there is no such problem (or this apps developers re-login on background as IP change). Anyone knows how we can solve this problem?

2

Keep session alive on IP changes

Re: Keep session alive on IP changes

Any response from Gurtam Team?

3

Keep session alive on IP changes

Re: Keep session alive on IP changes

hhamedk, SID isn't expiring on IP changes. The only important thing to prevent session expiration is to send periodically some request for example /avl_evts. Without such request session will expire after 5 minutes.

Head of Wialon Local Department
Gurtam
4

Keep session alive on IP changes

Re: Keep session alive on IP changes

deal, would you please tell me more about error 1011 explained in bellow link? Please explain all possible situations that will cause this error.

https://sdk.wialon.com/wiki/en/sidebar/ … ors/errors

5

Keep session alive on IP changes

Re: Keep session alive on IP changes

hhamedk, error 1011 is returned in case of expiration of authorization form. Authorization form is valid for 1 hour on the same IP.
If 1 hour passed or user's IP changed before authorization - error 1011 is returned. You need to refresh form.

Head of Wialon Local Department
Gurtam