Support Topics Documentation Slack YouTube Blog

In what cases user become offline or logout


(Saad Zahoor) #1

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 ?


(Anton Govorushkin) #2

Hi!

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 - https://backendless.com/docs/android/users_login.html
  2. Call logout API
  3. You can control session timeout (session duration) on your Backendless app’s dashboard - https://monosnap.com/file/yjzI4RVrzXQaGzRERany6fk04A55p6. In this case every time user logs in - user token will be invalidated in the configured time

Anton