Persisting selectInput value on session

Hi all, I’m using a selectInput on my page. Is there a way to persist the state of selectInput value on the user session after they go to another page? For example, if they select “B”, and click on a link to go to another page, then go back to the previous page, the selectInput resets to its default value “A” instead of “B”

There isn’t a way to do that aside from using integrations which lets you persist data to a back end or database

But if you are comfortable with dropping in a snippet of JavaScript code, you can always run some custom code that uses local storage