Answer Posted / usha
cookie is small piece of data set by the server on the
client ,for session tracking. When the server sets the
cookie as part of the response,the client will send the
cookie back to the server when it sends the next request.
Cookie is class in http package.Create Cookie object and
send it as part of response using
response.addCookie(cookie object)
can access the cookie using
request.getCookie();
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is difference between get and post method?
What methods do you use in servlet - applet communication?
What are the difference between session and cookies in servlet? Explain
What is the main purpose of java servlets?
What is the web server used for running the Servlets?
How to get the IP address of client in servlet?
How to read request headers from servlets?
What are the advantages of cookies?
What methodology can be followed to store more number of objects in a remote server?
What are the uses of servlet
How forward () method is different from send redirect () method?
Why servlet is used as controller ? Not JSP? I want complete explation?
What is the type of method for sending request from http server?
Which event is fired at the time of session creation and destroy?
What are the different session tracking techniques?