Adobe ColdFusion 8 Web Application Construction Kit, Volume 1: Getting Started
by Ben Forta, Raymond Camden, Charlie Arehart
Cookie Limitations
There are some pretty serious restrictions on what you can store in cookies, mostly established by the original specification:
Only simple strings can be stored. Because dates and numbers can be expressed as strings, you can store them as cookies. But no ColdFusion-specific data types, such as arrays and structures, can be specified as the value for a cookie.
A maximum of 20 cookies can be set within any one domain. This prevents cookies from eventually taking up a lot of hard drive space. Browsers might or might not choose to enforce this limit.
A cookie can be only 4 KB long. The name of the cookie is considered part of its length.
The browser isn’t obligated to store more than 300 cookies. (That is 300 total, counting all ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access