In what cases user become offline or logout

How many ways is there to logout the user

  1. one is to simply call request using api

Is there is other way to logout the user

If we lost the internet connection does user become offline or the user object becomes null ?


There are several options to logout a user:

  1. Do not pass boolean param stayLoggedIn = true on login request. This will lead to user token invalidation every time user closes the app -
  2. Call logout API
  3. You can control session timeout (session duration) on your Backendless app’s dashboard - In this case every time user logs in - user token will be invalidated in the configured time