wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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: 12761
    
    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
 
Don't get me started about those stupid light bulbs.
 
subject: Cookies
 
Similar Threads
can anyone tell me how to make a authentication with jsp & servlet
remember user password in jsp/java
WA #1.....word association
Session sharing (JSP-PHP)
handling next and back buttons in javascript