What are cookies?

What are cookies?

A Cookie is a small piece of information or messages used to communicate between the web server and the web browser. Your browser stores each message in a small file, called cookie.txt. This information is exchanged between the browser and the server to remember some specific information.


How cookies Work : A command line in the HTML of a document tell the browser to set a cookie of a certain name or value. Here is an example of some script used to set a cookie. Set-Cookie: NAME=VALUE; expir es=DATE; path=PATH; domain=DOMAIN_NAME; secure Cookies are usually run from CGI scripts, but they can also be set or read by Javascript. 


Examples of cookies : 

    * Cookies are used to track web site activity.

    * Cookies are also used for online shopping.

    * Servers also use cookies to provide personalized web pages.


Cookie Security : The easiest way to secure yourself against the supposed dangers of cookies is to get one of the latest browser versions and turn cookies off.


By:Jalees
Date:2017-01-09 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related JSP Subjective Links

JSP Subjective interview questions and answers for experienced and fresher