# How to use cookies on the webview?

**URL:** <https://community.thunkable.com/t/how-to-use-cookies-on-the-webview/708794>\
**Category:** Questions about Thunkable X\
**Tags:** webviewer\
**Created:** [July 29, 2020, 9:44am UTC](https://community.thunkable.com/t/how-to-use-cookies-on-the-webview/708794 "2020-07-29T09:44:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeanlordello](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@jeanlordello](https://community.thunkable.com/u/jeanlordello)\
**Post date:** [July 29, 2020, 9:44am UTC](https://community.thunkable.com/t/how-to-use-cookies-on-the-webview/708794/1 "2020-07-29T09:44:31Z")

</div>

Good afternoon,

I developed an application that is basically just a webview. The user logs in and browses the app normally. The problem is that when he exits the application and then comes back he asks to log in again, causing that every time the user closes or minimizes the application, he will have to log in again. How do I resolve this situation?

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [July 29, 2020, 11:02am UTC](https://community.thunkable.com/t/how-to-use-cookies-on-the-webview/708794/2 "2020-07-29T11:02:39Z")

</div>

Hi,

See the localstorage object in HTML5

---

<div class="post-metadata">

**Author:** ![Adi\_Nugroho](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/adi_nugroho/32/8882_2.png) [@Adi\_Nugroho](https://community.thunkable.com/u/Adi_Nugroho)\
**Post date:** [March 11, 2021, 8:00am UTC](https://community.thunkable.com/t/how-to-use-cookies-on-the-webview/708794/3 "2021-03-11T08:00:25Z")

</div>

Halo, can you kindly show some sample of blocks how to do it?

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [March 11, 2021, 12:30pm UTC](https://community.thunkable.com/t/how-to-use-cookies-on-the-webview/708794/4 "2021-03-11T12:30:52Z")

</div>

This is accomplished by setting cookies in your html, not blocks.

You could use the local storage or a stored variable to accomplish the same and pass through to the page using the webviewer and JavaScript injection BUT if you’re going that far, you may as well learn how to write and recall a cookie.

---

<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, 12:26pm UTC](https://community.thunkable.com/t/how-to-use-cookies-on-the-webview/708794/5 "2024-11-08T12:26:59Z")

</div>


