Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Difference between Session and Dictionary object
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

nguyenngocthao
Starting Member

1 Posts

Posted - 05 November 2001 :  01:04:12  Show Profile
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.

Thank in advance.

Aznknight
Senior Member

USA
1373 Posts

Posted - 05 November 2001 :  14:59:59  Show Profile  Send Aznknight an AOL message  Send Aznknight an ICQ Message
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.

- Alan
www.iamviet.com
Snitz Resource
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 05 November 2001 :  17:05:28  Show Profile
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.

Server memory is occupied in either case.


======
Doug G
======
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07