GATE / CS ARCHIVE

GATE CSE 2015 SET 2 / QUESTION 35

GATE CSE 2015 Set 2 Q35

Computer Networks · Application Protocols · Full GATE CSE 2015 Set 2 paper

GATE 2015 Set 2, Q35 1 mark · MCQ
Report issue

Application Protocols

Question 35, GATE 2015: Which cookie claim is NOT correct? A a cookie is executable code capable of compromising user security; B cookies arrive via HTTP headers; C a cookie has expiry date/time; D cookies can track browsing at a site.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

A cookie is stored data, not executable code, so A is false. Servers set cookies through HTTP headers and they can support tracking. Persistent cookies have expiration metadata; session cookies can instead omit an explicit expiration and expire with the session, qualifying the blanket wording of C.

A cookie is an HTTP state value stored and resent by the user agent, not a script executed as a program. It can still carry sensitive identifiers or enable tracking, so “not code” does not imply “no privacy/security risk.” Set-Cookie is an HTTP response header, and subsequent Cookie headers return applicable values. The expiry statement needs a distinction: persistent cookies have an expiry/max-age, whereas session cookies may omit that field. The intended false definition is A, but C is not universal as literally worded.

Original paper, page 37 · Answer key