search
Log In
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
9 votes
2.6k views

Which of the following statements is NOT correct about HTTP cookies?

  1. A cookie is a piece of code that has the potential to compromise the security of an Internet user
  2. A cookie gains entry to the user's  work area through an HTTP header
  3. A cookie has an expiry date and time
  4. Cookies can be used to track the browsing pattern of a user at a particular site
in Web Technologies 2.6k views

5 Answers

8 votes
 
Best answer

Answer is A. 

See this : http://stackoverflow.com/questions/3467114/how-are-cookies-passed-in-the-http-protocol

Moreover, cookies are just strings not code. Refer Tanenbaum .


selected by
0
I too after writing the answer gave it a second thought. Sorry.
0
dude,no need to be sorry  :P chill
1

Correct/ Cookies are data and not code.

http://en.wikipedia.org/wiki/HTTP_cookie

0 votes
Answer Is A

 

A cookie is a piece of code that has the potential to compromise the security of an Internet user

Its Not A Piece Of Code
0 votes
An HTTP cookie (also called web cookie, Internet cookie, browser cookie, or simply cookie) is a small piece of data sent from a website and stored on the user's computer by the user's web browser while the user is browsing. Cookies are not piece of code, they are just strings typically in the form of key value pairs.
0 votes

Cookie is a file (at most 4KB) or a string. It is criticised because it can arguably violate privacy — not compromise the security of the user (We have to be technical here).

Cookie is just data. Not an executable program, hence it can't compromise security.

Option A is incorrect (Answer)


Cookies are passed via HTTP headers, in both the cases (when client contacts server, and when server contacts the client)

Option B is correct.


Cookies may contain up to 5 fields that have information about

  1. Domain
  2. Path
  3. Content
  4. Expiry
  5. If the browser would return the cookie to only a secure server.

Option C is correct.


The primary functionality of cookies is to track the user's browsing pattern, so as to customize their viewing experience. Option D is correct.


Additional information

The data of the cookies is only meant for the server. It is never revealed to the browser/user.

Cookie is something that the server creates, and only the server eats. (Line taken from Forouzan)

 

Tannenbaum, page 481.


edited by
–1 vote
It is B.

For reference you can have a look at the HTTP header here.

http://en.wikipedia.org/wiki/List_of_HTTP_header_fields

reshown by
0
The answer is A :)
Answer:

Related questions

3 votes
1 answer
1
1.2k views
Which of the following statement is/are FALSE? XML overcomes the limitations in HTML to support a structured way of organizing content. XML specification is not case sensitive while HTML specification is case sensitive. XML supports user defined tags while HTML uses pre-defined tags. ... need not be closed while HTML tags must be closed. Ⅱ only Ⅰ only II and IV only III and IV only
asked Feb 13, 2015 in Web Technologies makhdoom ghaya 1.2k views
9 votes
3 answers
2
2.5k views
A graphical HTML browser resident at a network client machine $Q$ accesses a static HTML webpage from a HTTP server $S$. The static HTML page has exactly one static embedded image which is also at $S$. Assuming no caching, which one of the following is correct about the ... A single HTTP request from $Q$ to $S$ is sufficient, and this is possible without any TCP connection between $Q$ and $S$
asked Sep 28, 2014 in Web Technologies jothee 2.5k views
0 votes
1 answer
3
448 views
The main reason for preferring servlet for web application development is : (A) Increased performance of web application (B) Easy to develop an application (C) Platform independent application (D) More secure application
asked Mar 6, 2017 in Web Technologies Beyonder 448 views
6 votes
2 answers
4
2.8k views
Which one of the following is not a client-server application? Internet chat Web browsing E-mail Ping
asked Sep 29, 2014 in Web Technologies jothee 2.8k views
...