Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What are cookies and how will you use them?

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


Please Help Members By Posting Answers For Below Questions

When a client request is sent to the servlet container, how does the container choose which servlet to invoke?

974


When servlet is loaded?

1029


Explain the jar and war files in servlet?

1040


What is the difference between get and post methods?

982


How can you push data from an Applet to a Servlet?

1033


How does tomcat servlet container work?

1019


What is the difference between Server and Container?

1178


What is a deployment descriptor?

1046


What is a java servlet?

1000


How to generate the server side programming and the advantages of it over the other languages?

940


Which method of the httpservletrequest object is used?

1014


What is servlet looping or chaining?

1072


What is Request Dispatcher?

1360


What are the different ways we can maintain state between requests?

1044


explain the advantages of servlet life cycle?

930