Session() variables question

G

Griff

I have an ASP [Classic] application running under IIS 5 & 6 [on different
servers (obviously)]

I need to implement Session() variables to cache some frequently looked up
data. Because of the nature of the data, it is best held in the Session()
rather than the Application() object.

My question is: Is there a limit to the how long the parameter name can be?
For example:

Session("HairColour") - the parameter name length her is 10 characters -
what's the max length (is there a max length)?

I ask because my code will generate these parameter names on the fly and I
don't want them to break anything.....

Thanks in advance

Griff
 
A

Anthony Jones

Griff said:
I have an ASP [Classic] application running under IIS 5 & 6 [on different
servers (obviously)]

I need to implement Session() variables to cache some frequently looked up
data. Because of the nature of the data, it is best held in the Session()
rather than the Application() object.

My question is: Is there a limit to the how long the parameter name can be?
For example:

Session("HairColour") - the parameter name length her is 10 characters -
what's the max length (is there a max length)?

I ask because my code will generate these parameter names on the fly and I
don't want them to break anything.....

There is no theoretical limit. Of course using names that are 1K in size
and varying only on the last few characters is going to have some
performance problems.
 

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

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top