What you are looking for is called caching. but it is a massive effort and may require some server-side customisation plus it consumes a lot of resources (one user = 1 unique search = 1 file to store on server)
A better approach to solve your problem would be to return a URL to the search page with the search queries embedded:
search.php?search=games
If you want to, you can embed the productids into the url, though there is a limit
PHP Code:
search.php?productid[]=1&productid[]=2&productid[]=3
This will result in an array called productid[] in $_GET, which you access via
PHP Code:
$productid = $_GET['productid][0]; // will give you 1
The third one is to cache all the productid inside a temporary DB, with all the id into one text column, separated by commas. Use the explode to form an array of product-ids and then re-fetch the information. Add in a timestamp so you can make those pages expire.
Hope these suggestions help!
Bookmarks