Array of arrays? Rec check etc

by "John Murray" <jmnc(at)lis.net.au>

 Date:  Fri, 7 Dec 2001 10:23:05 +1100
 To:  <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
I want to use the usual tools inbuilt into the standard browser - you know -
javascript and your objects in the DHTML objects interface - the old stuff -
and I want to take a cookie that is maximum 800 characters long and break it
up into records.

Now each record has fixed length fields, with the first field being "Record
Type" and the second and third fields being the actual record data.

So my cookie could look like this:

thestuffIwant=AA11135zyqBB13256agoCC19734amnBB

To chunk it up:

1. Is 800 characters allowed by the usual suspects in a cookie?

2. At the end of the cookie I want to write check number that is the result
of some calculation on the full cookie string that when the cookie is
re-read can be re-calculated and if A) The number of times a particular
character occurs is changed or B) The position characters changes - then
this number changes. [That is I want to be able to say to my clients "We Use
Tamperproof Cookie Technology" or somthing similar - I know, I know - the
net is like a piece of swiss bloody cheese for security and privacy holes -
but hang in here with me...]. Any thoughts?

3. As you can see the record sequence is 2 capitols, 5 digits, and 3
lowercase. Each record that shares the same 2 capitols I need to group and
deal with together but in a seperate way to the others. Any thoughts on
grouping them. This is where I figured an array of arrays would be handy.

Any input would be sincerely appreciated.

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA