Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help!!! Save my life!

Status
Not open for further replies.

malladisk

Programmer
Jun 14, 2001
69
US
Hi!
I've posted the same question twice so far but no reply yet! This should be a fairly easy thing and I'm surprised that no one's replied.
I want to have a session level array which I can refer to in an asp page. I'd like to create this array in the global.asa file within the Session_OnStart function and use it in my asp page. I should be able to read from and write to the session level array so that the values can be accessed from all pages as long as the session is active.
HELP!!!
Sashi
 
I think your best bet is to store the variables in a back end DB and access them that way. Your gonna heavily load the server storing the varaibles in the through the session object. I would create and keep a session ID on the server and use that to store and access any others that you create/need for you app...

Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
Arrays are objects in VBScript..

In your SESSION_ONSTART have something like
sess_ary = join("val1","val2","val3","val4")

in your asp files say
set ary = session("sess_ary")

you can then use ary as a normal array

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top