Hi,
at first sight, writing cookies with javascript seem easy, but in practice i got a weird bug.
In fact, cookies are correctly saved on client computer, but for some reason, when the number of cookies i wrote reach 18 (why 18 i really don't know, it is not always the same number), the next cookie i'll write will overwrite another i wrote before, even if the cookies have diffrent names.
As a result i lost some of the values i stored in theses cookies, and the ASP Session ID cookie isn't different, it is overwrited by another cookie with a totally diffrent name, why ??
Can anyone help me on that problem ?
It doesn't happen if i wrote my cookies using server side instruction (ASP), but in this case i most write the cookie with client-side code.
Thank you for your help
Jonathan
at first sight, writing cookies with javascript seem easy, but in practice i got a weird bug.
In fact, cookies are correctly saved on client computer, but for some reason, when the number of cookies i wrote reach 18 (why 18 i really don't know, it is not always the same number), the next cookie i'll write will overwrite another i wrote before, even if the cookies have diffrent names.
As a result i lost some of the values i stored in theses cookies, and the ASP Session ID cookie isn't different, it is overwrited by another cookie with a totally diffrent name, why ??
Can anyone help me on that problem ?
It doesn't happen if i wrote my cookies using server side instruction (ASP), but in this case i most write the cookie with client-side code.
Thank you for your help
Jonathan