temporary values syntax and functionality changed. You can now store up to 10 independent values for temporary use and each can have up to 250 characters, enough to hold numbers, links, text labels or even short messages.
To access each individual value you will refer to it with an index from 0 to 9, this extra parameter is what was added now. Without it the function will use by default position 0 (zero, first value) .
Example of use:
mds_store_sessdata('lorem ipsum',5);
mds_store_sessdata('abc',0);
mds_store_sessdata('test 3',3);
mds_retrieve_sessdata(@vt,7);
echo 'Va l 7:'.@vt; //returns nothing
mds_retrieve_sessdata(@vt,5);
echo 'Va l 5:'.@vt; //returns lorem ipsum
mds_retrieve_sessdata(@vt,3);
echo 'Va l 3:'.@vt; //returns test 3
mds_retrieve_sessdata(@vt,0);
echo 'Va l 0:'.@vt;//returns abc
Alternate syntax still valid:
@vt = 'LLKK';
storetmp(@vt,3);
retrievetmp(@vt,3);
echo 'Stored: '.@vt;
(someone pls update this on the forum too)
UPDATE: alternate syntax
Example of use:
mds_store_sessdata('lorem ipsum',5);
mds_store_sessdata('abc',0);
mds_store_sessdata('test 3',3);
mds_retrieve_sessdata(@vt,7);
echo 'Va l 7:'.@vt; //returns nothing
mds_retrieve_sessdata(@vt,5);
echo 'Va l 5:'.@vt; //returns lorem ipsum
mds_retrieve_sessdata(@vt,3);
echo 'Va l 3:'.@vt; //returns test 3
mds_retrieve_sessdata(@vt,0);
echo 'Va l 0:'.@vt;//returns abc
Alternate syntax still valid:
@vt = 'LLKK';
storetmp(@vt,3);
retrievetmp(@vt,3);
echo 'Stored: '.@vt;
(someone pls update this on the forum too)
UPDATE: alternate syntax