Thanks dorward,
I'm not getting any value at all into the cookie so I'm not sure that this bug will be the cause of this problem.
As for the validator. Well, (embarassed grin) I finally started putting my pages through it when I discovered this problem and, yup, I've got alot to fix.