Classic ASP, Perlscript, and a session variable

How to assign a multi-dimentional array into an ASP session variable

I have search thru many books, and numerous websites for a straight-forward example of how to assign a multi-dimentional array into an ASP session variable, but have had no luck! My thoughts on the matter were that I would need to use a reference to the input array as input for the session varaible:

$Session->{sessionArray} = @{inputArray}; or
$Session->{'sessionArray'} = @{'inputArray'}; or
$Session->{'sessionArray'} = @inputArray - assigns the upper ran of the array

I have tried the above example numerious ways with unfavorable results. Has anyone accomplished anything similar to the above?
 
Assigning a session variable to an ASP/Perlscript variable

This scenario requires converting an array structure into a string, and for the structure breakdown the substrings in the array structure must be delimited by a value in order for recognizing the sub-elements:

$Session->{'sessionStructure'} = join('&&',@array);

Where the above example takes the elements of the array "@array" on the left, delimits those elements with "&&", and assigns that string into the session variable "sessionStructure". sessionSturcture becomes a flatten field or a contiguous string. :)
 
Back
Top