# Tutorial App Setting, Still Online and Forced Logout

**URL:** <https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542>\
**Category:** Resources & Tutorials\
**Created:** [March 21, 2021, 5:10am UTC](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542 "2021-03-21T05:10:07Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [March 21, 2021, 5:10am UTC](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542/1 "2021-03-21T05:10:08Z")

</div>

Hi All,

Here is cloneable app.

> **[Tutorial App Setting, Still Online and Forced Logout](https://previewer.adalo.com/8425bc54-079d-4ed3-9ac7-71027030883b)**
>
> Tutorial App Setting, Still Online and Forced Logout

App Setting collection is 1-record only and used to contain global variables, we can access it using list disguised as button. (login and signup button)

To make list of a button, by clicking vertical 3 dots in left panel.

Still Online is toggle (true/false) property in users collection, is used to make visible green ellipse at user’s icon (at top right corner).

Along with last online, this could be useful when doing bulk update to check how much time has elapsed, such as users are idle.

Forced Logout is to logout automatically when toggle property is true in users collection.

Every navigation to link screen is checked against this value.

Input fields and countdown are still visible, but can be squeeze and color change and relocated so that it don’t clutter the screen.

Regards.

---

<div class="post-metadata">

**Author:** ![B0untiful\_26](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@B0untiful\_26](https://forum.adalo.com/u/B0untiful_26)\
**Post date:** [March 21, 2021, 5:01pm UTC](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542/2 "2021-03-21T17:01:00Z")

</div>

Wonderful job! 🙂

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [November 12, 2021, 10:22pm UTC](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542/3 "2021-11-12T22:22:15Z")

</div>

I have updated this app to have a list of online users, it is in tab 2 screen.

And the broken change input value is no longer used.

 ![Screen Shot 2021-11-13 at 5.18.29 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/6/63ec7ce0ed27ec54c667a2f9dc106e456dd63b4f.png)  
 ![Screen Shot 2021-11-13 at 5.21.33 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/f/fcea7d67d5444e8d2b7c78f0d838ccf3742ca05d.png)

---

<div class="post-metadata">

**Author:** ![Bobby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bobby/32/14843_2.png) [@Bobby](https://forum.adalo.com/u/Bobby)\
**Post date:** [December 10, 2021, 4:34pm UTC](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542/4 "2021-12-10T16:34:01Z")

</div>

Hi, @Yongki

Would you be able to explain how this works a bit? Sorry i’m new to the platform and need a auto-logout feature for my app.

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [December 10, 2021, 8:34pm UTC](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542/5 "2021-12-10T20:34:55Z")

</div>

In home screen or any screen that you feel users are staying for lots of time, every components that have action to link to another screen should be checked if they are flagged for forced logout, so they need to login again if necessary.

While at the same time, we know that users are interacting with our app, so we mark them as still online.

 ![Screen Shot 2021-12-11 at 3.30.24 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/9/9d7ae2ea8c06335b9b42fa15234f9e82bece8cf8.png)  
 ![Screen Shot 2021-12-11 at 3.30.47 AM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/a/a19856766d8eb1542a9f22ad2feb2a9c6d3da8ad.png)

---

<div class="post-metadata">

**Author:** ![Bobby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/bobby/32/14843_2.png) [@Bobby](https://forum.adalo.com/u/Bobby)\
**Post date:** [December 10, 2021, 8:49pm UTC](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542/6 "2021-12-10T20:49:00Z")

</div>

@Yongki I understand now, thank you.

I was thinking this was a feature that would allow for an auto-logout. This seems (if im understanding it correctly) to be more of a manual process.

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [December 10, 2021, 9:02pm UTC](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542/7 "2021-12-10T21:02:54Z")

</div>

In this case, it needs trigger from user, but if you want trigger from time elapsed, we need countdown component on screen that do the same actions.

---

<div class="post-metadata">

**Author:** ![njimmy10](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/njimmy10/32/23489_2.png) [@njimmy10](https://forum.adalo.com/u/njimmy10)\
**Post date:** [December 11, 2021, 1:38am UTC](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542/8 "2021-12-11T01:38:09Z")

</div>

But also countdown wont work if the app is forced closed, the admin has to access it and wait for the countdown to end

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [December 11, 2021, 6:16am UTC](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542/9 "2021-12-11T06:16:25Z")

</div>

Yes, all things don’t work, but if we put small number, user doesn’t have a chance to do that.

After they logout, we check the condition at login, so forced logout user is going nowhere.

---

<div class="post-metadata">

**Author:** ![Gabe1987](https://avatars.discourse-cdn.com/v4/letter/g/5fc32e/32.png) [@Gabe1987](https://forum.adalo.com/u/Gabe1987)\
**Post date:** [December 12, 2021, 5:43pm UTC](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542/10 "2021-12-12T17:43:29Z")

</div>

@njimmy10 I need your help with an app. Can I email you?

---

<div class="post-metadata">

**Author:** ![njimmy10](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/njimmy10/32/23489_2.png) [@njimmy10](https://forum.adalo.com/u/njimmy10)\
**Post date:** [December 12, 2021, 5:44pm UTC](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542/11 "2021-12-12T17:44:30Z")

</div>

Yes of course.

---

<div class="post-metadata">

**Author:** ![Gabe1987](https://avatars.discourse-cdn.com/v4/letter/g/5fc32e/32.png) [@Gabe1987](https://forum.adalo.com/u/Gabe1987)\
**Post date:** [December 12, 2021, 5:45pm UTC](https://forum.adalo.com/t/tutorial-app-setting-still-online-and-forced-logout/10542/12 "2021-12-12T17:45:25Z")

</div>

Is it posted here?
