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 / 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


Please Help Members By Posting Answers For Below Questions

What is difference between get and post method?

1061


What methods do you use in servlet - applet communication?

1031


What are the difference between session and cookies in servlet? Explain

1031


What is the main purpose of java servlets?

1037


What is the web server used for running the Servlets?

996


How to get the IP address of client in servlet?

1066


How to read request headers from servlets?

1027


What are the advantages of cookies?

1111


What methodology can be followed to store more number of objects in a remote server?

2264


What are the uses of servlet

1152


How forward () method is different from send redirect () method?

953


Why servlet is used as controller ? Not JSP? I want complete explation?

1121


What is the type of method for sending request from http server?

1083


Which event is fired at the time of session creation and destroy?

1370


What are the different session tracking techniques?

1190