IIS ASP - Session() variables question

This is Interesting: Free IT Magazines  
Home > Archive > IIS ASP > February 2007 > Session() variables question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Session() variables question
Griff

2007-02-13, 1:17 pm

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


Anthony Jones

2007-02-13, 7:18 pm


"Griff" <griffithsj_520@hotmail.com> wrote in message
news:u70nFE5THHA.2124@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.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com