Concept:
HTTP is a stateless protocol. To maintain user-specific information across multiple requests, web servers use cookies.
A cookie is a small piece of information stored by the browser on behalf of the server.
Step 1: Understand Cookies.
A cookie consists of a name-value pair such as:
\[
\texttt{UserID = 12345}
\]
or
\[
\texttt{SessionID = ABCD123}
\]
which is sent by the server through the HTTP response header.
Step 2: Purpose of Cookies.
Cookies are used for:
• Session management
• User authentication
• Personalization
• Tracking user activity
Step 3: Analyze the options.
Session is server-side information.
Bookmark is a browser feature.
Document Object refers to DOM elements.
Only Cookie represents a name-value pair sent by the server.
Step 4: Select the answer.
\[
\boxed{\text{Cookie}}
\]
Was this answer helpful?
0
0
Top TS PGECET Computer Science & Information Technology Questions