PDA

View Full Version : Cookie Size



AparnaSara
12-01-2009, 12:46 PM
Hi,

I want to know how we can get the cookie size. In Mozilla firefox i got
Name
Value
Host
Path
Expire.

The same way i want to get cookie size also . Please advise me how can i get it using javascript.

mrhoo
12-01-2009, 07:44 PM
I'm not sure what you mean by cookie size, but you can get the number of characters stored in the value of the cookie with document.cookie.length...