# Saving information

**URL:** <https://forum.freecodecamp.org/t/saving-information/79592>\
**Category:** General\
**Created:** [January 23, 2017, 7:45am UTC](https://forum.freecodecamp.org/t/saving-information/79592 "2017-01-23T07:45:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Subhan95](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Subhan95](https://forum.freecodecamp.org/u/Subhan95)\
**Post date:** [January 23, 2017, 7:45am UTC](https://forum.freecodecamp.org/t/saving-information/79592/1 "2017-01-23T07:45:36Z")

</div>

As a part of the voting app project, I need to persist the search information when the user logs in (and display it later, so that the user need not search it again), how can I do this? Are cookies useful for this? If so, how can I do this using cookies

---

<div class="post-metadata">

**Author:** ![akshaynaik404](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@akshaynaik404](https://forum.freecodecamp.org/u/akshaynaik404)\
**Post date:** [January 23, 2017, 8:25am UTC](https://forum.freecodecamp.org/t/saving-information/79592/2 "2017-01-23T08:25:12Z")

</div>

You can also use LocalStorage. Here’s a link to its api doc - [LocalStorage](https://developer.mozilla.org/en/docs/Web/API/Window/localStorage)

Another helpful link: [StackOverflow Q&A](http://stackoverflow.com/questions/3220660/local-storage-vs-cookies)

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 16, 2021, 5:11pm UTC](https://forum.freecodecamp.org/t/saving-information/79592/3 "2021-01-16T17:11:01Z")

</div>


