In Fig. 7-22, www.aportal.com keeps track of user preferences in a cookie. A disadvantage of this scheme is that cookies are limited to 4 KB, so if the preferences are extensive, for example, many stocks, sports teams, types of news stories, weather for multiple cities, specials in numerous product categories, and more, the 4-KB limit may be reached. Design an alternative way to keep track of preferences that does not have this problem.
Domain
Path
Content
Expires
Secure
toms-casino.com
/
CustomerID=297793521
15-10-10 17:00
Yes
jills-store.com
Cart=1-00501;1-07031;2-13721
11/1/2011 14:22
No
aportal.com
Prefs=Stk:CSCO+ORCL;Spt:Jets
31-12-20 23:59
sneaky.com
UserID=4627239101
31-12-19 23:59
Figure 7-22. Some examples of cookies.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here