views:

10

answers:

0

Hi, I'm working on a collaborative project and I'm trying to figure out the best way to store previous search results. Let me quickly explain the scenario.

I have a list of search result items and I want these results to be stored as a user clicks on an item and visit's it's landing page. At the top there will be a section listing the last set of search result items with the current item highlighted to show where among the last results the current item is located in relation. Each item has an id that is almost two dozen characters long.

My instinct would be to store all of the last search result ids in GET but that could be too long and make a very long ugly address bar.

Should I store all of the last search result ids in POST, store the ids in Cookies, store the search query parameters in GET and then run another search query when the user reaches the landing page (essentially running a search all over again), or is there a better way than any of that?

Thank you for you help!