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
Which exception is thrown if the servlet is not initialized properly?
When using servlets to build the HTML, you build a DOCTYPE line, why do you do that?
What's the use of servletcontext?
How can an existing session be invalidated?
How the JSP file will be executed on the Server side?
Write all the phases defined in servlet life cycle?
How do you define a servlet?
What is servlet mapping?
How httpservlet is different from the genericservlet?
What is session tracking?
Once the destroy() method is called by the container, will the servlet be immediately destroyed? What happens to the tasks(threads) that the servlet might be executing at that time?
What do you mean by chaining in servlet?
Explain the custom jsp tags and the beans.
What exactly are the functions of servlet?
Explain session tracking and its importance?