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

Can I store an array to a sesson variable? 1

Status
Not open for further replies.

puterdude

Technical User
Apr 13, 2001
51
0
0
US
Hi,
Dumb question probably, but is it possible to store an array of items to a session variable so I can compare the items from screen to screen?
 
yes, you can store an array in a session variable, but it stores it as a string, so if you need to use it as an array in subsequent pages, you need to redefine it in an array variable. or do a string compare on the session variable.

and i don't believe you can store a multi-dimensional array in the session variable, only single dimensional (since it treats it as a string).

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top