472,142 Members | 1,276 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,142 software developers and data experts.

Session() variables question

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
Feb 13 '07 #1
1 1336

"Griff" <gr************@hotmail.comwrote in message
news:u7**************@TK2MSFTNGP06.phx.gbl...
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.
Feb 13 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Xizor | last post: by
2 posts views Thread by Brad | last post: by
5 posts views Thread by Abhilash.k.m | last post: by
10 posts views Thread by tshad | last post: by
3 posts views Thread by Alan Wang | last post: by
2 posts views Thread by Michaelk | last post: by
26 posts views Thread by BillE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.