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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Vars, arrays & cookies HELP!

Status
Not open for further replies.

Caradog

Programmer
Jun 28, 2000
73
GB
Sorry about cross posting...this ones about storing product information in an array and storing that data in cookies (DB is the other option).

With the following array defined:

Cart = Array("Product", "Description", "Price")

I'm right in saying that it is only stroed in memory right?

Ok, so let's say there are 3 items in the Cart array, can I save all that info with teh same data structure as cookies? Then, on the next page retive the info from the cookie on the same format? I.e.,

response.write (variable ("Product[1]", "Description[1]", "Price[1]").

Would this:

Cart = Array("Product", "Description", "Price")
Session("Cart") = Cart

Save the Cart array datastructure in teh session var as-is and I can then access the session the same way I would access the array?

- Jace.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top