# How can I block a user from 'going back' after signing out?

**URL:** <https://community.thunkable.com/t/how-can-i-block-a-user-from-going-back-after-signing-out/563503>\
**Category:** Questions about Thunkable X\
**Created:** [April 16, 2020, 2:19pm UTC](https://community.thunkable.com/t/how-can-i-block-a-user-from-going-back-after-signing-out/563503 "2020-04-16T14:19:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chris.bailey230698t](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@chris.bailey230698t](https://community.thunkable.com/u/chris.bailey230698t)\
**Post date:** [April 16, 2020, 2:19pm UTC](https://community.thunkable.com/t/how-can-i-block-a-user-from-going-back-after-signing-out/563503/1 "2020-04-16T14:19:36Z")

</div>

I have got a logout button which brings users to the sign-in screen, but users can still simply swipe back, or press their physical back button to bring them back to the settings page. Any idea how I can avoid/block this from being possible?

---

<div class="post-metadata">

**Author:** ![billyljren](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/billyljren/32/65122_2.png) [@billyljren](https://community.thunkable.com/u/billyljren)\
**Post date:** [April 17, 2020, 1:09am UTC](https://community.thunkable.com/t/how-can-i-block-a-user-from-going-back-after-signing-out/563503/2 "2020-04-17T01:09:38Z")

</div>

How about adding a check on the previous screen with the help of a local storage that determines if the user is still logged in ?

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/2/129cfd6b21d6c0399af947447b0379bf074f328b.png)

---

<div class="post-metadata">

**Author:** ![chris.bailey230698t](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@chris.bailey230698t](https://community.thunkable.com/u/chris.bailey230698t)\
**Post date:** [April 18, 2020, 10:11am UTC](https://community.thunkable.com/t/how-can-i-block-a-user-from-going-back-after-signing-out/563503/3 "2020-04-18T10:11:05Z")

</div>

Hi @billyljren, thank you for this idea! That works perfectly! I’ve also found that I can use this as well, which I never new existed:

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/3/a30182eb832f56a40e478f57adf7a8f3ed3ccfa0.png)

Thank you! 🙂

---

<div class="post-metadata">

**Author:** ![Daniel\_Coglitore](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@Daniel\_Coglitore](https://community.thunkable.com/u/Daniel_Coglitore)\
**Post date:** [April 18, 2020, 10:37pm UTC](https://community.thunkable.com/t/how-can-i-block-a-user-from-going-back-after-signing-out/563503/4 "2020-04-18T22:37:13Z")

</div>

That backbutton pressed I think is only for android on ios they can swipe back I think…

---

<div class="post-metadata">

**Author:** ![chris.bailey230698t](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@chris.bailey230698t](https://community.thunkable.com/u/chris.bailey230698t)\
**Post date:** [April 18, 2020, 11:59pm UTC](https://community.thunkable.com/t/how-can-i-block-a-user-from-going-back-after-signing-out/563503/5 "2020-04-18T23:59:25Z")

</div>

Interesting, unfortunately I don’t have an IOS device to try this on! It seems to work for the button-less swipe back gesture on Android 🙂

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:38am UTC](https://community.thunkable.com/t/how-can-i-block-a-user-from-going-back-after-signing-out/563503/6 "2024-11-08T11:38:52Z")

</div>


