This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 12675
    
    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

Java Resources at www.wbrogden.com
Steve Chernyak
Ranch Hand

Joined: Oct 19, 2000
Posts: 113
Tnahks
 
I agree. Here's the link: http://aspose.com/file-tools
 
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
handling next and back buttons in javascript
Session sharing (JSP-PHP)