The search_results_url simply provides a link to go back to the search results. There is no need for a session variable in this case. The query parameter values come from the details page request/URL.