In my web application, I have a form which allows searching for items in the database. When a user clicks a search result, it opens that result in the same window.
But, then a user hits the back browser to go back to his search results he finds an empty search form (off course, because that page is reloaded).
What is the best way to "remember" the search form values when hitting the "back button"? I found some different ways: - history.js (store variables after # in the URL) - store it in database - store it in $_SESSION date - store in in a cookie
When the user visits the URL of the search page in the normal way (not going "back"), it should just be empty.
Please advice. Thank you.