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

Explain the servlet filter.

993


What are the types of servlets? Explain

1270


When is the servlet instance created in the life cycle of servlet? What is the importance of configuring a servlet?

1066


What are all the advantages of servlet over cgi?

1094


How do you create a cookie using servlet?

1177


List some life cycle methods of a servlet.

1072


Define the life cycle of a servlets.

1065


What is pure servlet?

1216


What is cgi?

1032


What is servlet in web technology?

1059


What are the phases of servlet life cycle?

1116


How can I send user authentication information while making URL Connection?

1009


What is session tracking?

1217


how many jsp scripting elements are there and what are those?

1022


How do you run a servlet?

1067