This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Cookie's... 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 "Cookie Watch "Cookie New topic
Author

Cookie's...

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
As far as i know a cookie is a bit of info sent by the web server to the browser that can be later read back from that browser.
My question is how does the web server/servlet know what info to send to the browser. In the servlet, where should i store the info to send to the browser. I have a simple cookieservlet which will print out the cookies and is setting a cookie.
In setting a cookie, i have
String name = req.getParameter("cookieName");
String value = req.getParameter("cookieValue");
I am not sure what this value contains, does this hold anything we want to store?
I am new to this concept, please let me know.
Thanks,
 
wood burning stoves
 
subject: Cookie's...
 
Similar Threads
Chapter 6(Session Management) notes (HFSJ) for revision
HttpServletResponse.addCookie same as HttpServletResponse.setHeader ??
cookie explanation
Cookies!!!
Confusion between Cookie and JSession