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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Cookies" Watch "Cookies" New topic
Author

Cookies

Ramesh Shanmugam
Ranch Hand

Joined: Sep 13, 2004
Posts: 132
How to set multiple value for a cookie and to retrieve it back?


Ramesh Shanmugam - SCJP 1.5
Julian Kennedy
Ranch Hand

Joined: Aug 02, 2004
Posts: 823
When writing the response (before writing any content):

When reading a subsequent request:

Note that I'm not sure what guarantees are made (if any) that cookies will be returned in the order they were added. You may need to use Cookie.getName() to validate this. For further info read the API docs.

Jules
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
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