We're currently redesigning our website. As it is fairly high traffic, we need to be as efficient as possible. When a person searches for a product, I want to save this search. I'm not sure whether it would be better to use cookies or session variables. My thinking was that using session variables might be a waste of memory on the server. Is this correct? Would there be any downsides to using cookies instead?
Also on the topic of variables, should I be wary of putting too much information into application variables? Currently we have all of our product brand names in application variable arrays. I was considering putting all product model names (about 700 names) in application variable arrays as well. This would eliminate a lot of extra SQL queries. Would this be more efficient?
Thanks.
Also on the topic of variables, should I be wary of putting too much information into application variables? Currently we have all of our product brand names in application variable arrays. I was considering putting all product model names (about 700 names) in application variable arrays as well. This would eliminate a lot of extra SQL queries. Would this be more efficient?
Thanks.