Hi.
In a routine I'm writing, I'm having to pass a list of selected items across to an image generation. The only feasable method of doing this that I could come up with was passing cookie's through.
This works a treat for the most part. However, once there are more than approximately 18 selected items being passed (using:
if (isset($other[person])) {
while ( list( $num, $host ) = each($other[person]) ) {
setcookie("PersonHost[$num]", $host );
}
}
), the following routine which grabs the details out of the cookie (using:
if (isset($PersonHost) && $PersonHost[0] != 0) {
while (list ( $line, $value ) = each ( $PersonHost ) ) {
if (isset($OtherQry)) {
$OtherQry = $OtherQry."or ";
}
$OtherQry = $OtherQry."host = \"$value\" ";
setcookie("PersonHost[$line]", "", time() - 3600);
}
} ) only gets the LAST 18 records.
As the cookie array is being generated with a numerical index, first 0, then 1, then 2 etc. get dropped from the array. I do not konw where they are going.
I was just wondering if anybody knew of any cookie limitations that would cause details (which ammount to a string lengh of less than 500 bytes) to be truncated in this mannor.
Behaviour witnessed using IE 5.50 under '98SE. Netscape 6 (gecko 6/6.01) seems not to use the cookies stored at all (will have to look in to that one further).
Thanks.
bkx