This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 12759
    
    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
 
Similar Threads
can anyone tell me how to make a authentication with jsp & servlet
WA #1.....word association
remember user password in jsp/java
Session sharing (JSP-PHP)
handling next and back buttons in javascript