Use cookie to save last query (optional feature disabled by default).

Note, the last query is only saved for the page loads when the user clicks a search result. It will not be saved between pages refreshes or if a link that is not a search result is clicked.