Saving information

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

You can also use LocalStorage. Here’s a link to its api doc - LocalStorage

Another helpful link: StackOverflow Q&A