Click to See Complete Forum and Search --> : Cookie, Javascript and IE Browser


lilu
08-18-2003, 12:01 AM
Hi All,

As I know I can store 4k of data per cookie and 20 cookie per domain in my IE browser. For example if I have 2 cookies, cookie_name1 and cookie_name2, then I can store 8k total data.

But I observed that it stores only 4k of total data per domain. If I try to store more than 4k data, then it behaves very strangely. When I tried to store more than 4k of data then tried to read the cookie using "document.cookie", it returned me null.

I have this problem in case of IE browser only. Netscape Browser works fine if I store more than 4k of data.

Please let me know if there is any limitation in IE browser for cookie size.

Thanks,
Lilu

Khalid Ali
08-18-2003, 10:21 AM
do u have any example page where you are trying to save that much data and its not being saved..???

lilu
08-18-2003, 02:12 PM
Hi Khalid,

Here I have attached the cookie testing form that I use for testing the cookie functionality.

Please enter the cookie name and cookie value in the corresponding text box and click on
"SetCookie" button to save the cookie to the browser. After you excceds the 4k size, you will notice that, the
document.cookie always returns null.


Please let me know if you have problem using the test cookie form.

Thanks,
Lilu

Khalid Ali
08-18-2003, 02:42 PM
I have to say that you have a valid problem..IE does not allow more then 4k..sorry...

lilu
08-18-2003, 03:17 PM
But as per Cookie documentation, the limit of 4k data is per cookie not per domain. So if I have 2 cookies, each cookie should store 4k of data, right ?

Is this BUG in IE as NN does allow me to store 4k data per cookie?

As I have to use cookie in my site please let know if there is any work around for this problem.

Thanks,
lilu