[Javascript] Maximun length of an id

Emmanuel emmanuel at satimage-software.com
Tue Sep 11 16:12:07 CDT 2007


At 2:23 PM -0400 9/11/07, Terry Riegel wrote:
>I don't use SQL, so not trying to prevent this. Finding the 
>encrypted ID now and submitting it is what the page would be 
>designed to do. I wouldn't want that ID to be changed to allow 
>changing other data.

I think that there is no maximum length on an attribute in the XML 
specification, and there certainly are browsers around which support 
arbitrarily long attributes. That said, if I were you, I would decide 
that the ID will be, say, 32 characters long, and I would adapt my 
hashing algorithm to make 32 characters keys.

Emmanuel



More information about the Javascript mailing list