Remebering previous site states

  • Thread starter Thread starter ahaupt
  • Start date Start date
A

ahaupt

Hi all,

I have a site with a search page, which uses session variables to store
the search criteria.

The problem is that the session obviously gets overwritten each time a
new search is done. Thus, if you were to go back or forward with the
browser it'll appear like all your searches have been the same one.

How does the search engines do it. Does it cache the searches somehow
and remove them later on?

Best,
Andre
 
You can cache multiple searches in Session, but you will have to use a
Hashtable or some other collection to gather them. You can also cache the
results of the query, but realize you might end up overdoing the caching if
you store a lot of information. This is not wise.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top