limits on number of variables (1 Viewer)

bloody_football

Registered User.
Local time
Today, 17:10
Joined
Sep 8, 2004
Messages
70
Just a general question -
Is there a limit on how many Session variables you can have? or should have?

I have seen the code of a forum board made from ASP and they have about 80 pages of scripts and about 400 variables.

Is there a limit to how long an ASP script can be before it slows down the HTML code?

James
 

Kodo

"The Shoe"
Local time
Today, 02:10
Joined
Jan 20, 2004
Messages
707
a lot of what you're questioning has to do with server configuration, software requirements and software archtecture. If you have lots of RAM , then you have more leeway, However, if you have say 1Gig of RAM and you have 1000 users on your site with 15 session objects, each with 100kb of data then you're over 1.4Gb of memory usage. You can see with that example that you would run into trouble. Now that was not a likely scenario but I wanted to show you how memory usage can be exponential.

as for number of variables, well, I doubt all 400 are in use at one time. Remember, once the page has been interpreted, those values technically don't exist anymore. The only other problem could be not releasing (closing / set nothing) on your instantiated objects.
 

Users who are viewing this thread

Top Bottom