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

How to create war file?

1236


What is servlet interface?

1280


What is a generic servlet?

1006


What's the difference between authentication and authorization?

1207


What is servlet container. how it works?

1178


What is the capacity the doget can send to the server?

1133


How to handle exceptions thrown by application with another servlet?

1144


What is called a session?

1234


What is cgi?

1070


Can servlet have a constructor ?

1101


How do I use cookies to store session state on the client?

1027


How to get the current httpsession object?

1176


Explain servlet events?

1067


Why jsp is better than servlet?

1083


Which are the different ways you can communicate between servlets?

1055