What are cookies?

Ads
 

What are cookies?

What are cookies?

View Answers

June 6, 2012 at 5:35 PM

Cookies are piece of data which are stored at the client?s browser to track information regarding the user usage and habits. Servlets sends cookies to the browser client using the HTTP response headers. When client gets the cookie information it?s stored by the browser in the client?s hard disk. Similarly client returns the cookie information using the HTTP request headers. When cookie based session management is used, a token is generated which contains user's information, is sent to the browser by the server. The cookie is sent back to the server when the user sends a new request. By this cookie, the server is able to identify the user. In this way the session is maintained. Cookie is nothing but a name- value pair, which is stored on the client machine. By default the cookie is implemented in most of the browsers.

For more information, visit the following links:

http://www.roseindia.net/jsp/jspcookies.shtml

http://www.roseindia.net/servlets/use-cookie-servlet.shtml

Ads









Related Tutorials/Questions & Answers:
what is bit
What is procedure
Advertisements
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
what is hibernate.archive.autodetection
what is collections?
what are indices?
What is Hibernate
What is Hibernate
What is Hibernate
What is Hibernate
What is an Abstract Class and what is it's purpose?
What is Externalizable?
What is the % operator?
What is DataAccessException?
What is SQLExceptionTranslator?
What is casting?
What is IOC ?
What are Struts?
What is WAP?
What is CRM?
What is webservices?
What is Ajax?
What is NSRangeException
What is portal
What was ENIAC
What is Java?
What is an Iterator?

Ads