Answer Posted / tulasi vani
Cookies are small bit of textual information that are sent
from the webserver to the browser and sent back from the
browser to the server without changing the data later.
Cookies are helpful during e-commerce sessions when it will
be possible to recoginise a user during a session or it
helps in advertising as we can know the user preferences.
Cookies are created using:
Cookie c=new Cookie("name",value);
response.addCookie(c);
you can retrive the cookie value using:
request.getCookie() which returns a String giving the name
of the cookie and the value associated with the cookie.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What are the differences between the servletconfig interface and the servletcontext interface?
what is the different between a servlet and a cgi? Why do you go for servlet rather than cgi?
When servlet object is created?
What is servlet used for?
What are the types of servlet?
Explain mvc pattern.
What is the use of request dispatcher interface?
how the HTML data stored in web server?
Is servlet a controller?
Why doesn’t a servlet include main()? How does it work?
What is servlet and list its types?
What is Servlet API used for connecting database?
Can we refresh servlet in client and server side automatically?
Explain the methods of request dispatcher in servlet?
Whether we can get deadlock situation in servlets?