scripter73
Programmer
Hi,
I want to build several session variables dynamically, but I'm not sure on the syntax or even if you can do it.
For example, here's what I'd like:
fnet_path1
fnet_path2
....
fnet_pathx
where x is a number to be determined. Here's what I had, but I don't think Session() allows substitutions other than a name in quotes.
for m=1 to 2 'this is just a sample to see if it works
strFilename = "fnet_path" & i
Session(strFilename) = Server.URLEncode(objDocument.GetCachedFile())
next
But I have an application that shows all session vars and they are not there.
What am I doing wrong? I'm a relative newbie to ASP and would like to steer
clear of arrays if I could.
Thanks,
scripter73
Change Your Thinking, Change Your Life.
I want to build several session variables dynamically, but I'm not sure on the syntax or even if you can do it.
For example, here's what I'd like:
fnet_path1
fnet_path2
....
fnet_pathx
where x is a number to be determined. Here's what I had, but I don't think Session() allows substitutions other than a name in quotes.
for m=1 to 2 'this is just a sample to see if it works
strFilename = "fnet_path" & i
Session(strFilename) = Server.URLEncode(objDocument.GetCachedFile())
next
But I have an application that shows all session vars and they are not there.
What am I doing wrong? I'm a relative newbie to ASP and would like to steer
clear of arrays if I could.
Thanks,
scripter73
Change Your Thinking, Change Your Life.