I have just read 'ASP Page Performance' document. They said '... avoid session variables ... this will slow down the application ...' and they suggested "... it's better to use the dictionary object."
My query is What is a difference between using Session and Dictionary object if I use the <OBJECT> tag to instantiate a Dictionary Object with session scope replace for Session.
can you point to the "ASP page performance" document? It'll be easier to answer this question, if we read what they said and understand what they meant.
afaik, if you instantiate a dictionary object in global.asa with session scope you will be storing the dictionsary object in the session collection.
There are problems with dictionary objects and application scope, run some searches on the web for more info.
IMHO, much of the "session variables are bad" stories are based on 3 or 4 year old testing, back when they were pretty bad. With IIS5 sessions are pretty stable, and I have no hesitation using session variables with the understanding of the scalability issues.
Session is just a large global collection. If you have many data elements, it's faster to iterate through a dictionary collection than the global session collection.