Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Web
Expertise: Beginner
Aug 19, 1998

Limit Your Cookie Size

There are a number of important limitations on the use of cookies by Web site developers. This is because cookies are intended to be used only for infrequent storage of small amounts of data on the user's machine. Although how much cookie information is stored and for how long is up to the browser makers, the following limits generally apply:

300 Cookies total
20Cookies per server (not per page or site)
4K of data Per cookie (both the name and value of the cookie count towards this limit)

As a result, it's not a good idea to create separate cookies for each value you'd like to save. Instead, combine those values into a single cookie separated by a known delimiter.

Boris Feldman
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date