aspose file tools*
The moose likes Servlets and the fly likes Cookies Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookies" Watch "Cookies" New topic
Author

Cookies

Steve Chernyak
Ranch Hand

Joined: Oct 19, 2000
Posts: 113
Can anyone please tell me whether it is possible to store a collection of name value pairs in one cookie.
Thanks
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12806
    
    5
Each cookie has a single name and a single value. However, since the value string can be pretty long, you could invent your own syntax to pack it full of name/value pairs.
Bill
Steve Chernyak
Ranch Hand

Joined: Oct 19, 2000
Posts: 113
Tnahks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Cookies