[thelist] JS cookie question (ignore previous)

Hans-Fr=?ISO-8859-1?B?6WTp?=ric Fraser hfraser at videotron.ca
Fri Jan 10 11:25:01 CST 2003


On 1/10/03 12:14 PM, "Tom Dell'Aringa" <pixelmech at yahoo.com> wrote:
> pidMaxValue = 200;
>
> for(x=1; x<=pidMaxValue; x++)
> {
> cookieName = "pid" + x;
> thisCookie = getCookieData(cookieName);
> //write them out to see
> }
> ------------------------------------
> Now my test cookie is pid111=1. My problem is I get these results
> pulled:
> ------------------------------------
> pid1= (1=1)
> pid10= (=1)
> pid11= (=1)
> pid111= (1)
> ------------------------------------
> So it sees pid111 as a value for 1, 10, and 11 and 111 which is odd.
> It's actually pulling apart the cookie to give me the = sign as part
> of my response.
>
> Any idea why this is or how I can fix it?

well your problem seems to be with the getCookieData() function!
if we could have a look at it we might be able to help!


hans!




More information about the thelist mailing list