Google News
logo
JSP - Interview Questions
What are Cookies, their types, and how each type differs from the other?
Cookies are text files that are created in the client machine and store details of web searches or sites explored using the browser, date, and time of visit, along with IP address. The presence of cookies helps websites identify clients that return to their sites.
 
Cookies are of various types such as Authentication, Tracking, and Session cookies.

* Authentication cookies validate a genuineness of a valid user that revisits the website.

* Session cookies are short-lived until the user explores a particular website, once he leaves the site, session cookies are deleted by browsers.

* Tracking cookies as the name suggests keeps a record of how often a particular website has been visited.
Advertisement