# User Should Remain Log In

**URL:** <https://community.thunkable.com/t/user-should-remain-log-in/1658540>\
**Category:** Questions about Thunkable X\
**Tags:** login\
**Created:** [December 22, 2021, 6:48am UTC](https://community.thunkable.com/t/user-should-remain-log-in/1658540 "2021-12-22T06:48:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![naitikjain99wz6mu](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@naitikjain99wz6mu](https://community.thunkable.com/u/naitikjain99wz6mu)\
**Post date:** [December 22, 2021, 6:48am UTC](https://community.thunkable.com/t/user-should-remain-log-in/1658540/1 "2021-12-22T06:48:00Z")

</div>

Hello, when my app starts I ask user to sign-in. If true it takes you to another screen.

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

So, what I want is, even after the app is closed use should remained signed-in for a day. The only time when user is signed out is

1. When user clicks Log Out Button.
2. When day is completed.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/c/ac8aaaca0627f42acea12cab9c0dbca0b5d1d450.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/9/39693631e48fc1c308eb5aa3ca8361210ecf42d5.png)

PS:- When I press back button on home screen it takes me to start screen i.e., Log-in screen.  
Where am I wrong, or what updates should I do to make this work!

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [December 22, 2021, 7:15am UTC](https://community.thunkable.com/t/user-should-remain-log-in/1658540/2 "2021-12-22T07:15:31Z")

</div>

You need to save the username in a **stored** variable rather than an **app** variable. Stored variables keep their value even when the app is closed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [March 22, 2022, 7:16am UTC](https://community.thunkable.com/t/user-should-remain-log-in/1658540/3 "2022-03-22T07:16:30Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
